/* Padelistan v3 · "Matchday"
   Condensed heavy italic capitals, one neon (ball lime) on the logo's green taken to black,
   grit everywhere (stripes, grain, speed lines, chain-link), the product as HUD on the game. */

:root {
  --ink: #050F0B;          /* the logo's green, almost black */
  --ink-2: #0A1D16;
  --panel: rgba(8, 24, 18, 0.78);
  --lime: #D7F54A;
  --lime-deep: #A9C51F;
  --white: #F4F4EE;
  --soft: rgba(244, 244, 238, 0.72);
  --faint: rgba(244, 244, 238, 0.45);
  --line: rgba(215, 245, 74, 0.38);
  --t-gold: #D9B23A; --t-silver: #C3CCD6; --t-bronze: #C9844D; --t-beginner: #93A79B;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(18px, 4.5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--white);
  font-family: var(--body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px; text-decoration: none;
  font: 700 18px/1 var(--display); letter-spacing: 0.02em; text-transform: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.btn-lime { background: var(--lime); color: var(--ink); box-shadow: 0 0 0 1px var(--lime), 0 0 28px rgba(215, 245, 74, 0.45); }
.btn-lime:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--lime), 0 0 40px rgba(215, 245, 74, 0.7); }
.btn-line { border: 1.5px solid var(--lime); color: var(--lime); }
.btn-line:hover { background: rgba(215, 245, 74, 0.1); }
.btn-lg { height: 54px; padding: 0 30px; font-size: 21px; }
.btn-block { width: 100%; }
.btn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 28px; padding: 22px var(--gutter);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo img { width: 40px; height: 40px; }
.logo span { font: italic 900 30px/1 var(--display); letter-spacing: 0.01em; }
.nav nav { display: flex; gap: 26px; }
.nav nav a { font: 600 19px/1 var(--display); text-decoration: none; color: var(--white); opacity: .9; }
.nav nav a:hover { color: var(--lime); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: max(100svh, 780px);
  background:
    radial-gradient(55% 60% at 75% 40%, rgba(20, 80, 60, 0.55), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(215, 245, 74, 0.06), transparent 70%),
    var(--ink);
}

/* Grit: diagonal hazard stripes */
.g-stripes {
  position: absolute; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(-58deg, rgba(244, 244, 238, 0.10) 0 14px, transparent 14px 34px);
  -webkit-mask-image: linear-gradient(135deg, #000 20%, transparent 75%);
  mask-image: linear-gradient(135deg, #000 20%, transparent 75%);
}
.g-tl { left: -4%; top: -6%; width: 46vw; height: 62vh; }
.g-br {
  right: 0; bottom: 0; width: 34vw; height: 16vh;
  background: repeating-linear-gradient(-58deg, var(--lime) 0 12px, transparent 12px 30px);
  -webkit-mask-image: linear-gradient(315deg, #000 15%, transparent 70%);
  mask-image: linear-gradient(315deg, #000 15%, transparent 70%);
  opacity: .85;
}
/* Grit: spray grain and scuffs */
.g-grain {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -0.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Grit: speed lines out of the shot */
.g-speed { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.g-speed line { stroke: rgba(244, 244, 238, 0.16); stroke-linecap: round; }
.g-speed line.l { stroke: rgba(215, 245, 74, 0.32); }

.hero-in {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px);
  align-items: center; min-height: max(100svh, 780px);
  padding: 110px var(--gutter) 56px;
}

/* ---------- The headline: broadcast capitals ---------- */
.words h1 {
  margin: 0; font-family: var(--display); font-style: italic; font-weight: 900;
  text-transform: uppercase; line-height: .84; letter-spacing: -0.005em;
  transform: skewX(-4deg); transform-origin: left bottom;
}
.words h1 span { display: block; }
.l1, .l3 { font-size: clamp(54px, 7.4vw, 118px); color: var(--white); }
.l2 {
  font-size: clamp(96px, 14vw, 226px); color: var(--lime); line-height: .8;
  text-shadow: 0 0 40px rgba(215, 245, 74, 0.25);
  margin: 0.04em 0 0.02em -0.02em;
}
/* the distressed print on the white lines */
.l1, .l3 {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9 6.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -9 6.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E");
}
.sub { margin: 22px 0 0; max-width: 30em; font-size: clamp(17px, 1.3vw, 20px); color: var(--soft); }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Proof strip: icon, label, number */
.proof {
  list-style: none; display: inline-flex; flex-wrap: wrap; margin: 40px 0 0; padding: 12px 6px;
  background: var(--panel); border: 1px solid rgba(244, 244, 238, 0.14); border-radius: 12px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.proof li { display: flex; align-items: center; gap: 12px; padding: 4px 18px; }
.proof li + li { border-left: 1px solid rgba(244, 244, 238, 0.16); }
.proof svg { width: 34px; height: 34px; fill: none; stroke: var(--lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.proof small { display: block; font-size: 13px; color: var(--soft); }
.proof b { display: block; font: italic 800 26px/1 var(--display); letter-spacing: .01em; }

/* ---------- The shot ---------- */
.shot { position: relative; height: min(76vh, 700px); min-height: 560px; }
.mesh { /* chain-link at the right edge */
  position: absolute; right: calc(var(--gutter) * -1); top: -40px; width: 30%; height: 70%; z-index: 0;
  background:
    repeating-linear-gradient(45deg, rgba(244, 244, 238, 0.22) 0 1.5px, transparent 1.5px 18px),
    repeating-linear-gradient(-45deg, rgba(244, 244, 238, 0.22) 0 1.5px, transparent 1.5px 18px);
  -webkit-mask-image: linear-gradient(270deg, #000 30%, transparent);
  mask-image: linear-gradient(270deg, #000 30%, transparent);
}
.photo {
  position: absolute; inset: 0 0 0 6%; margin: 0; z-index: 1; overflow: hidden;
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; filter: saturate(1.1) contrast(1.05); }
.photo::after { /* floodlight grade and a lime edge glow */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(5, 15, 11, 0.75) 100%),
    linear-gradient(90deg, rgba(5, 15, 11, 0.45), transparent 30%),
    radial-gradient(60% 40% at 80% 0%, rgba(215, 245, 74, 0.18), transparent 70%);
}
.photo::before { /* neon frame on the hard cut */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 2px rgba(215, 245, 74, 0.55);
}
.streaks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.streaks path { fill: none; stroke: var(--lime); stroke-width: .7; stroke-linecap: round; filter: drop-shadow(0 0 2px var(--lime)); stroke-dasharray: 140; stroke-dashoffset: 140; animation: streak 3.6s var(--ease) infinite; }
.streaks .s2 { animation-delay: .25s; stroke-width: .4; }
.streaks .s3 { animation-delay: 1.2s; stroke-width: .5; }
@keyframes streak { 0% { stroke-dashoffset: 140; opacity: 0; } 15% { opacity: 1; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -140; opacity: 0; } }
.photo figcaption {
  position: absolute; z-index: 3; right: 14px; top: 12px;
  font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
}

/* ---------- HUD cards ---------- */
.hud {
  position: absolute; z-index: 4; display: block; text-decoration: none;
  padding: 14px 16px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 24px rgba(215, 245, 74, 0.10), 0 24px 50px rgba(0, 0, 0, 0.55);
}
.hud-row { display: flex; align-items: baseline; gap: 8px; font: italic 800 24px/1.05 var(--display); text-transform: uppercase; }
.hud-row span { color: var(--white); }
.lime { color: var(--lime); }

.hud-rank { left: -6%; top: 46%; width: 250px; }
.tierbar { display: flex; height: 8px; margin-top: 12px; border-radius: 99px; overflow: hidden; gap: 2px; }
.tierbar i { display: block; height: 100%; background: var(--dot); flex: var(--n, 1); transform-origin: left; }
[data-tier="Gold"] { --dot: var(--t-gold); }
[data-tier="Silver"] { --dot: var(--t-silver); }
[data-tier="Bronze"] { --dot: var(--t-bronze); }
[data-tier="Beginner"] { --dot: var(--t-beginner); }
.tierkey { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--soft); }

.hud-player { left: -2%; top: 72%; width: 230px; }
.hud-player .hud-row b { font-size: 40px; }
.hud-player .up { color: var(--lime); font-size: 22px; }
.hud-player small { display: block; margin-top: 4px; font-size: 13px; color: var(--soft); }

.hud-book { right: -2%; bottom: -4%; width: 240px; display: grid; gap: 4px; }
.hud-title { font: italic 800 22px/1 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.hud-book label { font-size: 12.5px; color: var(--soft); margin-top: 4px; }
.hud-book .field {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 7px;
  border: 1px solid rgba(215, 245, 74, 0.35); font-size: 14px; color: var(--white);
}
.hud-book .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .3; } }
.hud-book .btn { margin-top: 10px; height: 42px; font-size: 19px; }
.hud-book:hover { border-color: var(--lime); }

/* ---------- Motion in ---------- */
.js .words h1 span, .js .sub, .js .acts, .js .proof, .js .photo, .js .hud { opacity: 0; }
.in .words h1 span { animation: slam .7s var(--ease) both; }
.in .words h1 .l2 { animation-delay: .08s; }
.in .words h1 .l3 { animation-delay: .16s; }
.in .sub, .in .acts, .in .proof { animation: rise .8s var(--ease) both; }
.in .sub { animation-delay: .3s; } .in .acts { animation-delay: .38s; } .in .proof { animation-delay: .46s; }
.in .photo { animation: cut 1s var(--ease) .1s both; }
.in .hud { animation: hud .7s var(--ease) both; }
.in .hud-rank { animation-delay: .7s; } .in .hud-player { animation-delay: .85s; } .in .hud-book { animation-delay: 1s; }
@keyframes slam { from { opacity: 0; transform: translateX(-60px) skewX(-12deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cut { from { opacity: 0; clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } to { opacity: 1; clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); } }
@keyframes hud { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .words h1 span, .js .sub, .js .acts, .js .proof, .js .photo, .js .hud { opacity: 1; }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 1100px) {
  .nav nav { display: none; }
  .hero-in { grid-template-columns: 1fr; padding-top: 100px; }
  .shot { height: 560px; min-height: 0; max-width: 620px; width: 100%; margin: 20px auto 0; }
  .hud-rank { left: 0; }
  .hud-player { left: 0; }
  .hud-book { right: 0; }
}
@media (max-width: 640px) {
  .nav { padding: 14px 16px; }
  .logo span { font-size: 24px; }
  .logo img { width: 34px; height: 34px; }
  .nav .btn { height: 38px; padding: 0 16px; font-size: 16px; }
  .hero-in { padding: 86px 16px 40px; }
  .l1, .l3 { font-size: clamp(46px, 13.5vw, 64px); }
  .l2 { font-size: clamp(92px, 27vw, 130px); }
  .sub { font-size: 16px; }
  .btn-lg { height: 50px; padding: 0 24px; font-size: 19px; }
  .proof { display: grid; grid-template-columns: 1fr; width: 100%; padding: 6px; }
  .proof li { padding: 10px 12px; }
  .proof li + li { border-left: 0; border-top: 1px solid rgba(244, 244, 238, 0.16); }
  .shot { height: 520px; }
  .photo { inset: 0 0 0 0; }
  .mesh { display: none; }
  .hud { padding: 11px 12px; }
  .hud-row { font-size: 19px; }
  .hud-rank { left: 10px; top: 10px; width: 186px; }
  .tierkey { font-size: 10px; }
  .hud-player { display: none; }
  .hud-book { right: 10px; bottom: 10px; width: 188px; gap: 2px; }
  .hud-title { font-size: 19px; }
  .hud-book .field { height: 30px; font-size: 13px; }
  .hud-book .btn { height: 38px; font-size: 17px; }
  .g-tl { width: 90vw; }
  .g-br { width: 70vw; height: 10vh; }
}
