/* odznaki.lotka24.pl. Dark only, like the other rider microsites; tokens and header, CTA and
   footer patterns follow Pages/statystyka. HTML is generated by Odznaki/build.py. */
:root {
  --bg: #0A0F16;
  --bg-hi: #14233A;
  --band: #0E1621;
  --text: #F0F5FA;
  --dim: rgba(240, 245, 250, 0.72);
  --faint: #93a4b6;
  --sheet: #111923;
  --sheet-2: #172230;
  --line: rgba(118, 205, 255, 0.18);
  --blue: #76CDFF;
  --red: #E24B4A;
  --red-deep: #A32D2D;
  --gold: #FAC775;
  --chips-h: 57px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: radial-gradient(120% 70vh at 50% 0, var(--bg-hi) 0, var(--bg) 100%) no-repeat, var(--bg);
  color: var(--text);
  font: 400 16px/1.45 "Barlow", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
h1, h2 { font-family: "Bebas Neue", "Barlow", sans-serif; font-weight: 400; letter-spacing: .01em; margin: 0; }
h3, p, ol, ul { margin: 0; }
ol, ul { list-style: none; padding: 0; }
a { color: inherit; }

/* ---- Top bar ---- */
.top { display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: 0 auto; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
.brand { display: flex; align-items: center; min-width: 0; text-decoration: none; font: 400 22px "Bebas Neue", sans-serif; letter-spacing: .03em; min-height: 44px; }
.brand img { flex: none; width: 34px; height: 34px; object-fit: contain; margin-right: 8px; }
.brand b, .foot b { font-weight: 400; color: var(--blue); }
.brand em { font: 500 13px "Barlow", sans-serif; font-style: normal; letter-spacing: 0; color: var(--dim); margin-left: 4px; }
.top-end { display: flex; align-items: center; flex: none; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-right: 6px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-decoration: none; color: var(--blue); }
.lang:active { background: var(--sheet-2); }
.lang:focus-visible, .chips a:focus-visible, .btn:focus-visible, .login:focus-visible, .more:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- Hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 6px; max-width: 1120px; margin: 0 auto; padding: 8px 16px 8px; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
h1 { font-size: clamp(48px, 13vw, 88px); line-height: .94; margin-top: 4px; }
h1 span { color: var(--blue); }
.lead { font-size: clamp(16px, 2vw, 20px); color: var(--dim); margin-top: 8px; max-width: 30em; }

.fan { position: relative; height: 170px; margin: 4px -16px 0; }
.fan .glow { position: absolute; left: 50%; top: 55%; width: 340px; height: 340px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(250, 199, 117, .22), rgba(118, 205, 255, .08) 60%, transparent); pointer-events: none; }
.fan img { position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); transform: translate(var(--x), var(--y)) rotate(var(--r)); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)); animation: bob 5s ease-in-out infinite; animation-delay: var(--d); }
.fan .f0 { --s: 56px; --x: -150px; --y: 22px; --r: -14deg; --d: -1s; }
.fan .f1 { --s: 68px; --x: -100px; --y: -18px; --r: -8deg; --d: -3s; }
.fan .f2 { --s: 80px; --x: -48px; --y: 26px; --r: -4deg; --d: -2s; }
.fan .f3 { --s: 104px; --x: 0px; --y: -12px; --r: 0deg; --d: 0s; z-index: 1; }
.fan .f4 { --s: 80px; --x: 50px; --y: 28px; --r: 5deg; --d: -4s; }
.fan .f5 { --s: 68px; --x: 102px; --y: -16px; --r: 9deg; --d: -1.5s; }
.fan .f6 { --s: 56px; --x: 150px; --y: 24px; --r: 14deg; --d: -2.5s; }
@keyframes bob { 50% { transform: translate(var(--x), calc(var(--y) - 6px)) rotate(var(--r)); } }

/* ---- Facts ---- */
.facts { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 8px; max-width: 1120px; margin: 8px auto 0; padding: 0 16px; }
.facts li { background: rgba(17, 25, 35, .9); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.facts b { display: block; font-weight: 700; font-size: 15px; }
.facts span { display: block; font-size: 14px; color: var(--dim); }

/* ---- Group chips (sticky) ---- */
.chips { position: sticky; top: 0; z-index: 10; display: flex; overflow-x: auto; scrollbar-width: none; margin-top: 20px; padding: 8px 16px; background: rgba(10, 15, 22, .94); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); scroll-padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; margin-right: 8px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; color: var(--text); background: var(--sheet); transition: background .2s, color .2s, border-color .2s; }
.chips a:last-child { margin-right: 0; }
.chips small { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--faint); }
.chips a.on { background: var(--blue); border-color: var(--blue); color: #06202f; }
.chips a.on small { color: rgba(6, 32, 47, .7); }

/* ---- Groups and badges ---- */
.group { max-width: 1120px; margin: 0 auto; padding: 28px 16px 4px; scroll-margin-top: calc(var(--chips-h) + 4px); }
.group h2 { font-size: clamp(32px, 7vw, 44px); line-height: 1; margin-bottom: 12px; }
.badges { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
.badge { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; align-items: start; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 14px; scroll-margin-top: calc(var(--chips-h) + 8px); }
.badge:target { border-color: var(--gold); }
.art { width: 64px; height: 64px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
/* Name left, threshold right; a long name wraps under itself instead of pushing the label down. */
.b-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 10px; }
.b-head .thr { margin-top: 1px; }
.b-head h3 { font-size: 18px; font-weight: 700; line-height: 1.2; }
.thr { flex: none; font-weight: 700; font-size: 13px; line-height: 1; color: var(--gold); padding: 5px 9px; border-radius: 999px; background: rgba(250, 199, 117, .12); border: 1px solid rgba(250, 199, 117, .35); white-space: nowrap; }
.alt { font-size: 13px; color: var(--faint); margin-top: 2px; }
.how { margin-top: 6px; font-size: 16px; }
.note { margin-top: 4px; font-size: 14px; color: var(--dim); }
.more { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: -10px; font-weight: 600; font-size: 15px; color: var(--blue); text-underline-offset: 3px; }

/* ---- CTA, sticky button, footer (as on statystyka) ---- */
.contact { padding: 48px 16px 80px; text-align: center; }
.contact h2 { font-size: clamp(32px, 7vw, 44px); line-height: 1; margin-bottom: 6px; }
.contact p { color: var(--dim); }
.btn { display: inline-flex; align-items: center; justify-content: center; margin-top: 16px; min-height: 52px; padding: 0 32px; background: var(--red); color: #fff; border-radius: 10px; font-weight: 700; font-size: 17px; text-decoration: none; }
.btn:active, .stick:active { transform: scale(.98); background: var(--red-deep); }
.login { display: flex; align-items: center; min-height: 44px; width: fit-content; margin: 8px auto 0; padding: 0 4px; font-weight: 600; color: var(--blue); text-underline-offset: 3px; }
.stick { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); min-height: 48px; line-height: 48px; text-align: center; border-radius: 10px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.stick.on { opacity: 1; transform: none; pointer-events: auto; }
.foot { display: flex; justify-content: space-between; align-items: center; max-width: 1120px; margin: 0 auto; padding: 14px 16px calc(22px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--dim); border-top: 1px solid var(--line); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.foot span { font: 400 18px "Bebas Neue", sans-serif; letter-spacing: .03em; }

/* ---- 404 ---- */
.hero-404 { padding: 48px 16px 80px; }
.nf-links .login { display: inline-flex; margin: 16px 0 0 12px; }

/* ---- Wider screens ---- */
@media (min-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding-top: 24px; }
  .fan { height: 260px; margin: 0; }
  .fan img { --k: 1.35; width: calc(var(--s) * var(--k)); height: calc(var(--s) * var(--k)); margin: calc(var(--s) * var(--k) / -2) 0 0 calc(var(--s) * var(--k) / -2); transform: translate(calc(var(--x) * var(--k)), calc(var(--y) * var(--k))) rotate(var(--r)); }
  @keyframes bob { 50% { transform: translate(calc(var(--x) * var(--k)), calc(var(--y) * var(--k) - 8px)) rotate(var(--r)); } }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; }
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 12px; }
  .chips { justify-content: center; }
  .stick { display: none; }
  .contact { padding-bottom: 56px; }
}
@media (min-width: 1100px) {
  .badges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fan img { animation: none; }
  .stick, .chips a { transition: none; }
}
