:root {
  --bg: #0d0b14;
  --bg-2: #161222;
  --card: #1c1729;
  --line: #2e2742;
  --text: #f3eff9;
  --muted: #a69cbd;
  --accent: #ff2e88;
  --accent-2: #ffb627;
  --ok: #3ddc97;
  --err: #ff5c6c;
  --radius: 14px;
  --display: "Anton", Impact, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--accent-2); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(13, 11, 20, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-family: var(--display); font-size: 26px; letter-spacing: .04em; color: var(--text); text-decoration: none; text-transform: uppercase; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-user { color: var(--muted); font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 600 15px var(--body); cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #ff4d9a; border-color: #ff4d9a; transform: translateY(-1px); }
.btn-small { padding: 7px 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.nav-links .btn { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(circle, rgba(255, 46, 136, .35), transparent 60%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -200px; bottom: -300px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255, 182, 39, .18), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; }
.eyebrow { color: var(--accent-2); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 13px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 9vw, 112px); line-height: .95; margin: 14px 0 22px; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--muted); font-size: 19px; max-width: 560px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 56px 0 8px; }
.step { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.step b { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.step h3 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Sections & cards */
section.block { padding: 56px 0; }
.section-title { font-family: var(--display); font-weight: 400; font-size: 44px; text-transform: uppercase; margin: 0 0 24px; letter-spacing: .01em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: #4a3e68; transform: translateY(-2px); }
.card h3 { margin: 0; font-size: 22px; line-height: 1.25; }
.card .tagline { color: var(--muted); margin: 0; }
.date-badge { align-self: flex-start; font-family: var(--display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 46, 136, .14); color: var(--accent); padding: 4px 12px; border-radius: 999px; }
.meta { display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
.meta strong { color: var(--text); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.card .actions { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 8px; }
.status { font-size: 13px; font-weight: 600; }
.status.open { color: var(--ok); }
.status.closed { color: var(--err); }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* Forms */
.auth { display: grid; place-items: center; padding: 64px 20px; }
.panel { width: min(460px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 36px; }
.panel.wide { width: min(720px, 100%); }
.panel h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 40px; margin: 0 0 6px; }
.panel .sub { color: var(--muted); margin: 0 0 24px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea { width: 100%; padding: 12px 14px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: 15px var(--body); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 46, 136, .2); }
textarea { min-height: 90px; resize: vertical; }
.form-foot { margin-top: 18px; color: var(--muted); font-size: 14px; text-align: center; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert.err { background: rgba(255, 92, 108, .12); border: 1px solid rgba(255, 92, 108, .4); color: #ffb3bb; }
.alert.ok { background: rgba(61, 220, 151, .12); border: 1px solid rgba(61, 220, 151, .4); color: #a8f0cf; }

/* Competition detail */
.detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; padding: 48px 0; align-items: start; }
.detail h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 6vw, 64px); line-height: 1; margin: 12px 0; }
.detail .desc { color: var(--muted); }
.facts { display: grid; gap: 10px; margin: 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.facts div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.facts span { color: var(--muted); }

/* Account table */
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; background: var(--bg-2); }
.table tr:last-child td { border-bottom: none; }
.empty { padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.muted { color: var(--muted); }
.loading { color: var(--muted); padding: 24px 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; margin-top: 40px; }

@media (max-width: 800px) {
  .steps, .detail { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .nav-user { display: none; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); }
  .table td { border: none; padding: 6px 16px; }
  .table td:first-child { padding-top: 16px; }
  .table td:last-child { padding-bottom: 16px; }
}
@media (max-width: 520px) {
  .nav-links { gap: 10px; }
  .nav-links .hide-sm { display: none; }
  .panel { padding: 26px 20px; }
}
