/* Day Sport design system — shared by every page (mockup and the WP plugin). */
@property --t1 { syntax: '<color>'; inherits: true; initial-value: #f5c542; }
@property --t2 { syntax: '<color>'; inherits: true; initial-value: #5b2d8e; }
@property --t3 { syntax: '<color>'; inherits: true; initial-value: #ffffff; }

:root {
  --night: #080c16;
  --pitch: #0d2a19;
  --surface: rgba(20, 24, 34, .72);
  --surface-solid: #141824;
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f3f4f7;
  --muted: #9aa0ad;
  --gold: #f5b400;
  --ok: #2fcf7a;
  --bad: #ff5b6b;
  --ink: #111;
  --radius: 18px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  transition: --t1 1.2s ease, --t2 1.2s ease, --t3 1.2s ease;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; position: relative; color: var(--text);
  font-family: Vazirmatn, Tahoma, sans-serif; font-size: 15px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  /* Night stadium: floodlights at the top, the pitch rising towards the footer. */
  background:
    radial-gradient(900px 520px at 88% -120px, rgba(140, 170, 255, .16), transparent 70%),
    radial-gradient(900px 520px at 8% -140px, color-mix(in oklab, var(--t1) 16%, transparent), transparent 70%),
    linear-gradient(180deg, #0a0f1d 0%, #0a1119 38%, #0b1714 70%, var(--pitch) 100%);
  background-color: var(--night);
}
/* Mowing stripes that fade in towards the bottom of every page. */
body::before {
  content: ""; position: absolute; inset: 35% 0 0 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 90px, transparent 90px 180px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60%);
          mask-image: linear-gradient(to bottom, transparent, #000 60%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: min(1320px, 100% - 32px); margin-inline: auto; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.en { font-family: Anton, Impact, sans-serif; letter-spacing: .03em; direction: ltr; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 14px; border: 0;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--gold); color: #161000; box-shadow: 0 12px 30px -10px rgba(245, 180, 0, .7); }
.btn.primary:hover { box-shadow: 0 16px 36px -10px rgba(245, 180, 0, .9); }
.btn.team { background: var(--t1); color: var(--ink); box-shadow: 0 12px 30px -10px var(--t1); }
.btn.ghost { background: var(--surface-2); border: 1px solid var(--line-2); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.link { background: none; height: auto; padding: 0; color: var(--gold); font-weight: 600; }
.btn.block { width: 100%; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: #cfd3dc; font-weight: 500; }
.input {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245,180,0,.14); background: rgba(255,255,255,.07); }
.input.err { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(255,91,107,.12); }
.input input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 16px; }
.input input::placeholder { color: #6f7685; }
.input .pre { color: var(--muted); font-size: 14px; direction: ltr; }
.input .eye { background: none; border: 0; color: var(--muted); padding: 4px; display: grid; }
.hint { font-size: 12.5px; color: var(--muted); }
.hint.err { color: var(--bad); }

/* ---------- team badge (logo in a ring) ---------- */
.crest {
  position: relative; display: grid; place-items: center; border-radius: 50%;
  width: var(--s, 64px); height: var(--s, 64px); background: radial-gradient(circle at 30% 25%, #262b38, #11141c);
}
.crest::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 2.5px;
  background: conic-gradient(from 200deg, var(--a), var(--b), var(--a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.crest img { width: 62%; height: 62%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.crest b { font-family: Anton, Impact, sans-serif; font-size: calc(var(--s, 64px) * .28); color: #fff; direction: ltr; }

/* ---------- toast ---------- */
.toast-host { position: fixed; z-index: 200; left: 50%; bottom: 84px; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; min-width: 240px; max-width: 92vw;
  background: rgba(18, 22, 32, .96); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  font-size: 14px; animation: toast-in .25s ease;
}
.toast.ok svg { color: var(--ok); } .toast.bad svg { color: var(--bad); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; }
}
