@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #08040f;
  --panel: rgba(22, 12, 38, .72);
  --panel-strong: #170d28;
  --line: rgba(209, 174, 255, .13);
  --line-hot: rgba(183, 112, 255, .42);
  --text: #f8f4ff;
  --muted: #a99db9;
  --purple: #a855f7;
  --purple-2: #7c3aed;
  --pink: #e34cb7;
  --cyan: #65d9ff;
  --green: #58e8b6;
  --radius: 20px;
  --shadow: 0 28px 80px rgba(4, 0, 12, .55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, sans-serif; overflow-x: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #c084fc; outline-offset: 3px; }

.aurora-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: -2; background: radial-gradient(circle at 50% -20%, #311254 0, transparent 42%), linear-gradient(180deg, #0c0615, #08040f 48%, #090510); }
.aurora-bg::after { content: ''; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 54px 54px; -webkit-mask-image: linear-gradient(to bottom, black, transparent 78%); mask-image: linear-gradient(to bottom, black, transparent 78%); }
.aurora-bg i { position: absolute; width: 52vw; aspect-ratio: 1; border-radius: 50%; filter: blur(110px); opacity: .2; animation: drift 18s ease-in-out infinite alternate; }
.aurora-bg i:nth-child(1) { left: -18vw; top: 18vh; background: #7719ff; }
.aurora-bg i:nth-child(2) { right: -22vw; top: 6vh; background: #d946ef; animation-delay: -6s; }
.aurora-bg i:nth-child(3) { left: 36vw; top: 55vh; width: 34vw; background: #4f46e5; animation-delay: -12s; }
@keyframes drift { to { transform: translate3d(6vw, -4vh, 0) scale(1.12); opacity: .29; } }

.site-header { height: 78px; padding: 0 max(24px, calc((100vw - 1420px) / 2)); display: flex; align-items: center; gap: 42px; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(8, 4, 15, .76); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.brand { display: flex; align-items: center; gap: 12px; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand > span > b { font: 700 14px/1 Space Grotesk, sans-serif; letter-spacing: .1em; }
.brand small { color: var(--muted); font-size: 9px; letter-spacing: .17em; }
.brand-mark { position: relative; width: 42px; height: 46px; display: grid; place-content: center; border: 1px solid rgba(214,168,255,.42); background: linear-gradient(145deg, rgba(183,93,255,.34), rgba(70,28,111,.4)); clip-path: polygon(50% 0, 96% 20%, 86% 79%, 50% 100%, 14% 79%, 4% 20%); box-shadow: inset 0 0 18px rgba(205,136,255,.2); }
.brand-mark b { font: 800 21px/1 Space Grotesk; }
.brand-mark i { position: absolute; right: 4px; bottom: 10px; color: #d8b4fe; font: 700 8px/1 Inter; }
.site-header nav { display: flex; height: 100%; gap: 6px; }
.site-header nav button { position: relative; min-width: 80px; padding: 0 17px; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: color .2s ease; }
.site-header nav button::after { content: ''; position: absolute; height: 2px; left: 50%; right: 50%; bottom: 0; background: linear-gradient(90deg, var(--purple), var(--pink)); box-shadow: 0 0 14px var(--purple); transition: left .25s ease, right .25s ease; }
.site-header nav button:hover, .site-header nav button.active { color: #fff; }
.site-header nav button.active::after { left: 14px; right: 14px; }
.header-status { margin-left: auto; display: flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); color: #c9becf; font-size: 11px; font-weight: 600; }
.header-status i, .source-chip i, .trust-row span:last-child i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.78); } }

main { width: min(1420px, calc(100% - 48px)); margin: 0 auto; min-height: calc(100vh - 190px); }
.page { padding: 38px 0 76px; }
.kicker { color: #c896ff; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.kicker i { display: inline-block; width: 18px; height: 1px; margin-right: 7px; vertical-align: middle; background: linear-gradient(90deg, var(--purple), var(--pink)); box-shadow: 0 0 8px var(--purple); }

.hero { min-height: 500px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(560px, 1.1fr); align-items: center; gap: 42px; position: relative; overflow: hidden; padding: 64px clamp(34px, 5vw, 76px); border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(115deg, rgba(24,11,42,.96), rgba(16,7,31,.75)), radial-gradient(circle at 80% 50%, rgba(153,64,255,.2), transparent 42%); box-shadow: var(--shadow); }
.hero::before { content: ''; position: absolute; width: 550px; height: 550px; right: -120px; top: -250px; border: 1px solid rgba(185,122,255,.12); border-radius: 50%; box-shadow: 0 0 0 65px rgba(185,122,255,.025), 0 0 0 130px rgba(185,122,255,.018); }
.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.hero h1, .page-head h1 { margin: 17px 0 18px; font: 700 clamp(46px, 6vw, 76px)/.98 Space Grotesk, sans-serif; letter-spacing: -.055em; }
.hero h1 em { color: transparent; font-style: normal; background: linear-gradient(90deg, #d8b4fe, #c084fc 38%, #f472d0); -webkit-background-clip: text; background-clip: text; }
.hero-copy > p { max-width: 610px; color: #b7abc4; font-size: 16px; line-height: 1.72; }
.hero-actions { display: flex; gap: 12px; margin-top: 31px; }
.primary, .secondary, .load-more, .text-link, .filter-chip { border: 0; cursor: pointer; }
.primary, .secondary { min-height: 48px; padding: 0 22px; border-radius: 11px; font-weight: 700; font-size: 13px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.primary { background: linear-gradient(135deg, #a855f7, #7c3aed 68%, #6932c8); box-shadow: 0 12px 32px rgba(124,58,237,.34), inset 0 1px rgba(255,255,255,.22); }
.secondary { border: 1px solid rgba(201,161,255,.24); background: rgba(255,255,255,.045); }
.primary:hover, .secondary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(124,58,237,.35); }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 25px; color: #8f829e; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row svg { width: 13px; fill: none; stroke: #c084fc; stroke-width: 1.7; }

.hero-cards { position: relative; height: 390px; display: flex; align-items: center; justify-content: center; perspective: 1100px; z-index: 2; }
.hero-cards .fut-card { position: absolute; width: 230px; }
.hero-cards .fut-card:nth-child(1) { transform: translateX(-165px) rotate(-9deg) scale(.92); z-index: 1; }
.hero-cards .fut-card:nth-child(2) { transform: translateY(-11px) scale(1.08); z-index: 3; }
.hero-cards .fut-card:nth-child(3) { transform: translateX(165px) rotate(9deg) scale(.92); z-index: 2; }
.hero-cards .fut-card:nth-child(1):hover { transform: translateX(-165px) translateY(-9px) rotate(-7deg) scale(.96); }
.hero-cards .fut-card:nth-child(2):hover { transform: translateY(-20px) scale(1.1); }
.hero-cards .fut-card:nth-child(3):hover { transform: translateX(165px) translateY(-9px) rotate(7deg) scale(.96); }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 16px 0; }
.metric { min-height: 118px; display: flex; align-items: center; gap: 17px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(28,15,47,.78), rgba(15,8,27,.7)); box-shadow: 0 12px 34px rgba(3,0,11,.22); }
.metric > svg { width: 32px; height: 32px; padding: 7px; flex: 0 0 auto; border-radius: 10px; fill: none; stroke: #c084fc; stroke-width: 1.5; background: rgba(168,85,247,.11); }
.metric div { display: grid; gap: 4px; }
.metric small { color: #9b8ba9; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.metric b { font: 700 24px/1.1 Space Grotesk; }
.metric p { margin: 0; color: #786d83; font-size: 10px; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .65fr); gap: 16px; }
.content-panel, .champs-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.content-panel { padding: 28px; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.panel-head h2 { margin: 7px 0 0; font: 700 25px/1.1 Space Grotesk; }
.text-link { padding: 8px 0; background: none; color: #cabbd8; font-size: 11px; font-weight: 700; }
.text-link span { color: var(--purple); margin-left: 5px; transition: margin .2s ease; }
.text-link:hover span { margin-left: 10px; }
.player-row { display: grid; grid-template-columns: repeat(6, minmax(116px, 1fr)); gap: 8px; align-items: end; }

.champs-panel { position: relative; overflow: hidden; min-height: 405px; padding: 28px; background: radial-gradient(circle at 70% 25%, rgba(138,71,255,.26), transparent 40%), linear-gradient(150deg, #24113c, #120920); }
.champs-panel::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.035) 50%, transparent 80%); transform: translateX(-100%); animation: sheen 5s ease-in-out infinite; }
@keyframes sheen { 55%,100% { transform: translateX(100%); } }
.champs-top { display: flex; justify-content: space-between; color: #8c7d9c; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.status-pill { display: flex; align-items: center; gap: 7px; color: #cbbbd8; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: #8f7ba5; }
.champs-panel.live .status-pill i { background: var(--green); box-shadow: 0 0 9px var(--green); animation: pulse 1.8s infinite; }
.champs-shield { position: relative; width: 82px; height: 82px; margin: 30px 0 22px; display: grid; place-content: center; }
.champs-shield svg { position: absolute; inset: 0; fill: rgba(168,85,247,.16); stroke: #b56ef7; stroke-width: .8; filter: drop-shadow(0 0 16px rgba(168,85,247,.5)); }
.champs-shield b { position: relative; z-index: 1; font: 800 17px Space Grotesk; }
.champs-panel h2 { position: relative; margin: 0 0 10px; font: 700 25px/1.1 Space Grotesk; }
.champs-panel > p { position: relative; margin: 0; color: #a99bb6; font-size: 12px; line-height: 1.65; }
.countdown { position: relative; display: grid; gap: 5px; margin-top: 24px; }
.countdown small { color: #887994; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.countdown b { font: 700 20px/1 Space Grotesk; color: #dec2ff; }
.champs-foot { position: absolute; left: 28px; right: 28px; bottom: 25px; display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); color: #81758d; font-size: 9px; }
.champs-foot span { display: grid; gap: 3px; }
.champs-foot b { color: #ddd1e6; font-size: 11px; }
.champs-orbit { position: absolute; width: 230px; height: 230px; right: -70px; top: 40px; border: 1px solid rgba(190,126,255,.1); border-radius: 50%; animation: rotate 20s linear infinite; }
.champs-orbit i { position: absolute; border: 1px solid rgba(190,126,255,.1); border-radius: 50%; inset: 30px; }
.champs-orbit i:nth-child(2) { inset: 65px; }
.champs-orbit i:nth-child(3) { width: 7px; height: 7px; inset: 7px auto auto 106px; border: 0; background: #c084fc; box-shadow: 0 0 12px #c084fc; }
@keyframes rotate { to { transform: rotate(360deg); } }

.sbc-strip { margin-top: 16px; }
.sbc-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sbc-preview .sbc-card { grid-template-columns: 72px 1fr; }
.sbc-preview .sbc-body p, .sbc-preview .sbc-stats { display: none; }

.page-head { min-height: 185px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 32px 38px; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(circle at 85% 15%, rgba(153,70,255,.2), transparent 32%), linear-gradient(130deg, rgba(30,15,50,.88), rgba(13,7,23,.72)); }
.page-head h1 { margin: 8px 0 7px; font-size: clamp(36px, 5vw, 56px); }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.source-chip { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 10px 14px; border: 1px solid rgba(181,111,247,.25); border-radius: 999px; background: rgba(168,85,247,.075); color: #d6c3e7; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.filters { display: grid; grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(135px, 1fr)); gap: 10px; margin: 14px 0 26px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(18,10,30,.76); }
.filters label { display: grid; gap: 7px; }
.filters label > span { padding-left: 2px; color: #8d8098; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.filters input, .filters select { width: 100%; height: 45px; padding: 0 14px; border: 1px solid rgba(206,170,255,.14); border-radius: 10px; background: #0d0716; color: #f6efff; font-size: 12px; }
.filters input::placeholder { color: #665a70; }
.results-head { display: flex; justify-content: space-between; margin: 0 2px 18px; color: #7f728b; font-size: 11px; }
.results-head b { color: #d7cddd; }

.players-grid { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 20px 12px; }
.fut-card { width: 100%; min-width: 0; position: relative; display: grid; justify-items: center; padding: 0 0 13px; border: 1px solid transparent; border-radius: 17px; background: transparent; cursor: pointer; perspective: 800px; transition: transform .28s cubic-bezier(.2,.8,.2,1), background .25s ease, border-color .25s ease; }
.fut-card-stage { position: relative; display: block; width: 100%; aspect-ratio: 256/356; color: var(--card-text); transform-style: preserve-3d; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.fut-card-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; filter: drop-shadow(0 20px 20px rgba(0,0,0,.38)); }
.fut-card-face { position: absolute; z-index: 2; width: 67%; height: 45%; left: 28%; top: 13%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 7px 5px rgba(0,0,0,.18)); }
.fut-card-rating { position: absolute; z-index: 4; left: 17.5%; top: 16%; width: 18%; display: grid; justify-items: center; line-height: 1; text-shadow: 0 1px rgba(255,255,255,.12); }
.fut-card-rating b { font: 700 clamp(23px, 2.2vw, 33px)/1 Space Grotesk; letter-spacing: -.06em; }
.fut-card-rating small { margin-top: 3px; font-size: clamp(8px, .75vw, 11px); font-weight: 800; }
.fut-card-icons { position: absolute; z-index: 4; left: 21.5%; top: 29%; width: 10%; display: grid; gap: 5px; justify-items: center; }
.fut-card-icons img { width: 100%; max-height: 23px; object-fit: contain; }
.fut-card-name { position: absolute; z-index: 4; left: 20%; right: 17%; top: 57.5%; overflow: hidden; color: var(--card-text); font: 700 clamp(10px, 1.05vw, 14px)/1 Space Grotesk; letter-spacing: -.025em; text-align: center; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.fut-card-rule { position: absolute; z-index: 4; left: 25%; right: 22%; top: 63.2%; height: 1px; background: var(--card-text); opacity: .42; }
.fut-card-stats { position: absolute; z-index: 4; left: 24%; right: 21%; top: 65%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 15px; color: var(--card-text); }
.fut-card-stats span { display: flex; align-items: baseline; justify-content: space-between; }
.fut-card-stats b { color: var(--card-text); font-size: clamp(9px, .78vw, 12px); }
.fut-card-stats small { color: var(--card-text); font-size: clamp(6px, .5vw, 8px); font-weight: 700; opacity: .9; }
.card-caption { width: calc(100% - 20px); display: grid; gap: 3px; opacity: .82; text-align: center; }
.card-caption b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.card-caption small { color: #80738b; font-size: 9px; }
.card-aura { position: absolute; left: 18%; right: 18%; top: 25%; bottom: 17%; border-radius: 50%; background: var(--card-accent); filter: blur(35px); opacity: 0; transition: opacity .3s ease; }
.fut-card:hover { z-index: 4; transform: translateY(-7px); border-color: rgba(192,132,252,.13); background: rgba(192,132,252,.025); }
.fut-card:hover .fut-card-stage { transform: rotateX(3deg) rotateY(-3deg) scale(1.025); }
.fut-card:hover .card-aura { opacity: .2; }
.fut-card.image-failed .fut-card-stage::after { content: 'A21'; position: absolute; inset: 18% 16%; display: grid; place-content: center; border: 1px solid rgba(192,132,252,.25); border-radius: 30% 30% 22% 22%; color: #d8b4fe; font: 800 32px Space Grotesk; background: linear-gradient(145deg, #3d1762, #130820); }
.fut-card.compact .card-caption { display: none; }
.player-row .fut-card { padding-bottom: 0; }
.load-more { display: flex; align-items: center; justify-content: center; gap: 12px; width: min(340px, 100%); min-height: 50px; margin: 36px auto 0; border: 1px solid var(--line-hot); border-radius: 12px; background: rgba(168,85,247,.08); font-weight: 700; }
.load-more span { color: #9a8ca5; font-size: 10px; font-weight: 500; }
.load-more:hover { background: rgba(168,85,247,.16); }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state b { color: var(--text); font: 700 24px Space Grotesk; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 26px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: rgba(18,10,30,.7); }
.filter-chip { padding: 10px 16px; border: 1px solid transparent; border-radius: 999px; background: rgba(255,255,255,.035); color: #9f91aa; font-size: 11px; font-weight: 650; transition: .2s ease; }
.filter-chip:hover, .filter-chip.active { border-color: rgba(193,132,252,.33); background: rgba(168,85,247,.14); color: #f0e4ff; }
.sbc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sbc-card { min-width: 0; display: grid; grid-template-columns: 90px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(27,15,44,.86), rgba(13,7,23,.9)); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.sbc-card:hover { transform: translateY(-3px); border-color: var(--line-hot); box-shadow: 0 16px 35px rgba(4,0,10,.32); }
.sbc-art { position: relative; min-height: 174px; display: grid; place-content: center; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(236,72,153,.36), transparent 25%), linear-gradient(155deg, #5b21b6, #2e1065 58%, #160823); }
.sbc-art::before { content: ''; position: absolute; width: 120px; height: 120px; border: 1px solid rgba(255,255,255,.14); transform: rotate(45deg); }
.sbc-art span { position: relative; z-index: 2; display: grid; place-content: center; width: 48px; height: 54px; clip-path: polygon(50% 0,100% 22%,88% 78%,50% 100%,12% 78%,0 22%); background: linear-gradient(145deg, #f0c6ff, #a855f7); color: #230936; font: 800 14px Space Grotesk; }
.sbc-art > b { position: absolute; z-index: 2; left: 9px; bottom: 9px; font: 700 9px Inter; }
.sbc-art i { position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.18), transparent 60%); transform: translateX(-50%); animation: sheen 4.5s infinite; }
.sbc-body { min-width: 0; padding: 18px; }
.sbc-label { display: flex; justify-content: space-between; gap: 8px; color: #a98cbd; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.sbc-label b { color: #c4a0ed; }
.sbc-body h3 { margin: 8px 0 7px; font: 700 16px/1.18 Space Grotesk; }
.sbc-body > p { height: 31px; overflow: hidden; margin: 0 0 14px; color: #887b92; font-size: 10px; line-height: 1.55; }
.sbc-stats { display: flex; gap: 20px; padding-top: 11px; border-top: 1px solid var(--line); }
.sbc-stats span { display: grid; gap: 2px; }
.sbc-stats small { color: #71657c; font-size: 7px; text-transform: uppercase; }
.sbc-stats b { color: #d5c4e4; font-size: 10px; }
.rewards { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.rewards span, .pack-flags span { padding: 5px 7px; border: 1px solid rgba(192,132,252,.13); border-radius: 5px; background: rgba(168,85,247,.055); color: #9c8da7; font-size: 7px; }

.pack-list { display: grid; gap: 9px; margin-top: 16px; }
.pack-row { display: grid; grid-template-columns: 92px minmax(0,1fr) auto; align-items: center; gap: 22px; min-height: 128px; padding: 16px 24px 16px 17px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(120deg, rgba(27,15,44,.82), rgba(13,7,23,.85)); transition: transform .2s ease, border-color .2s ease; }
.pack-row:hover { transform: translateX(3px); border-color: var(--line-hot); }
.pack-icon { position: relative; width: 72px; height: 92px; display: grid; place-content: center; overflow: hidden; clip-path: polygon(50% 0, 94% 15%, 88% 82%, 50% 100%, 12% 82%, 6% 15%); background: linear-gradient(145deg, #e2c16a, #705314); box-shadow: inset 0 0 20px rgba(255,255,255,.16); }
.pack-icon.special { background: linear-gradient(145deg, #c68aff, #4c127b 60%, #e34cb7); }
.pack-icon.bronze { background: linear-gradient(145deg, #e5aa77, #8a4f2d 60%, #4d2818); }
.pack-icon.silver { background: linear-gradient(145deg, #f0f3f6, #929ba5 60%, #4b535d); }
.pack-icon.gold { background: linear-gradient(145deg, #fff1a6, #d0a93f 60%, #745518); }
.pack-icon span { position: relative; z-index: 2; color: #160822; font: 800 15px Space Grotesk; }
.pack-icon i { position: absolute; inset: -50%; background: linear-gradient(110deg, transparent 43%, rgba(255,255,255,.45), transparent 57%); animation: sheen 4s infinite; }
.pack-copy { min-width: 0; }
.pack-copy h3 { margin: 4px 0 0; font: 700 17px Space Grotesk; }
.pack-copy p { margin: 9px 0; color: #8d8098; font-size: 11px; line-height: 1.45; }
.pack-flags { display: flex; flex-wrap: wrap; gap: 5px; }
.pack-price { min-width: 120px; display: grid; gap: 9px; padding-left: 22px; border-left: 1px solid var(--line); text-align: right; }
.pack-price span { display: grid; color: #87798f; font-size: 8px; text-transform: uppercase; }
.pack-price b { color: #e8dcf2; font: 700 16px Space Grotesk; }

dialog { width: min(820px, calc(100% - 30px)); max-height: calc(100vh - 30px); overflow: auto; padding: 0; border: 1px solid rgba(201,151,255,.3); border-radius: 24px; background: linear-gradient(145deg, #211137, #0d0716 70%); color: var(--text); box-shadow: 0 50px 130px #000; }
dialog::backdrop { background: rgba(3,0,8,.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dialog-close { position: sticky; float: right; top: 16px; right: 16px; z-index: 5; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: rgba(10,5,18,.75); color: #ddd0e8; font-size: 23px; cursor: pointer; }
.detail-layout { display: grid; grid-template-columns: 330px 1fr; align-items: center; gap: 35px; padding: 46px; }
.detail-copy h2 { margin: 9px 0 4px; font: 700 38px/1 Space Grotesk; }
.detail-copy > p { color: var(--muted); font-size: 11px; }
.detail-copy dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 24px 0; }
.detail-copy dl div { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); }
.detail-copy dt { color: #7e7188; font-size: 7px; text-transform: uppercase; }
.detail-copy dd { margin: 4px 0 0; font-weight: 700; font-size: 13px; }
.stat-bars { display: grid; gap: 9px; }
.stat-bars > div { display: grid; grid-template-columns: 30px 1fr 28px; align-items: center; gap: 8px; color: #95889f; font-size: 9px; }
.stat-bars i { height: 4px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.07); }
.stat-bars i b { display: block; height: 100%; background: linear-gradient(90deg, var(--purple-2), var(--pink)); }
.stat-bars strong { color: #d9cbe4; text-align: right; }

footer { width: min(1420px, calc(100% - 48px)); min-height: 100px; margin: 0 auto; padding: 24px 0; display: flex; align-items: center; gap: 28px; border-top: 1px solid var(--line); color: #6f6479; font-size: 9px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { width: 33px; height: 36px; }
.footer-brand .brand-mark b { font-size: 15px; }
.footer-brand div { display: grid; gap: 3px; }
.footer-brand div b { color: #a99eb3; font-size: 10px; }
.footer-brand small { font-size: 8px; }
footer p { margin-left: auto; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease var(--delay, 0ms), transform .55s cubic-bezier(.2,.8,.2,1) var(--delay, 0ms); }
.reveal.shown { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0,1fr) minmax(430px,.9fr); }
  .hero-cards .fut-card { width: 190px; }
  .hero-cards .fut-card:nth-child(1) { transform: translateX(-130px) rotate(-9deg) scale(.9); }
  .hero-cards .fut-card:nth-child(3) { transform: translateX(130px) rotate(9deg) scale(.9); }
  .players-grid { grid-template-columns: repeat(4, 1fr); }
  .player-row { grid-template-columns: repeat(3, 1fr); }
  .player-row .fut-card:nth-child(n+4) { display: none; }
  .sbc-grid { grid-template-columns: repeat(2, 1fr); }
  .sbc-preview { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
  .site-header { height: auto; min-height: 72px; padding: 10px 20px; flex-wrap: wrap; gap: 8px 20px; }
  .site-header nav { order: 3; width: 100%; height: 42px; overflow-x: auto; }
  .site-header nav button { flex: 1; min-width: 76px; }
  .header-status { font-size: 0; padding: 8px; }
  main { width: min(100% - 28px, 720px); }
  .page { padding-top: 20px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 42px 28px; }
  .hero-cards { height: 300px; }
  .hero-cards .fut-card { width: 170px; }
  .hero-cards .fut-card:nth-child(1) { transform: translateX(-110px) rotate(-9deg) scale(.86); }
  .hero-cards .fut-card:nth-child(3) { transform: translateX(110px) rotate(9deg) scale(.86); }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: repeat(2,1fr); }
  .search-field { grid-column: 1/-1; }
  .players-grid { grid-template-columns: repeat(3,1fr); }
  .page-head { min-height: 165px; padding: 27px; }
  .sbc-grid { grid-template-columns: 1fr; }
  .pack-row { grid-template-columns: 75px 1fr; }
  .pack-price { grid-column: 2; grid-template-columns: repeat(2, auto); justify-content: start; padding: 0; border: 0; text-align: left; }
  .detail-layout { grid-template-columns: 260px 1fr; padding: 35px; gap: 20px; }
  footer { width: calc(100% - 28px); flex-wrap: wrap; }
  footer p { margin-left: 0; }
}

@media (max-width: 580px) {
  .brand > span:last-child, .header-status { display: none; }
  .site-header { padding-inline: 14px; }
  .hero h1 { font-size: 42px; }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-cards { height: 250px; transform: scale(.88); margin-inline: -30px; }
  .metrics { grid-template-columns: 1fr; }
  .metric { min-height: 96px; }
  .content-panel { padding: 20px 14px; }
  .player-row { grid-template-columns: repeat(2, 1fr); }
  .player-row .fut-card:nth-child(3) { display: none; }
  .sbc-preview { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head h1 { font-size: 36px; }
  .filters { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .players-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap-inline: 4px; }
  .fut-card-stats { gap: 0 7px; }
  .fut-card-name { font-size: 9px; }
  .sbc-card { grid-template-columns: 76px 1fr; }
  .pack-row { grid-template-columns: 64px 1fr; gap: 13px; padding-right: 15px; }
  .pack-icon { width: 60px; height: 78px; }
  .detail-layout { grid-template-columns: 1fr; padding: 25px; }
  .detail-layout .fut-card { width: 260px; margin: 0 auto; }
  .detail-copy h2 { font-size: 31px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* FIFA 21 card geometry and type, matched to the repository webapp's FutCard component. */
@font-face { font-family: "Aurora FUT 21 Condensed"; src: url("./assets/ut-condensed.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Aurora FUT 21 Condensed"; src: url("./assets/ut-condensed-bold.woff") format("woff"); font-weight: 600 700; font-display: swap; }
.fut-card-stage { aspect-ratio: 644 / 900; container-type: inline-size; font-family: "Aurora FUT 21 Condensed", "Arial Narrow", sans-serif; }
.fut-card-top { position: absolute; left: 19%; top: 15.5%; z-index: 4; display: grid; justify-items: center; width: 17%; color: var(--card-text); line-height: .85; }
.fut-card-rating { position: static; display: block; width: auto; font: 400 17.5cqw/.85 "Aurora FUT 21 Condensed", "Arial Narrow", sans-serif; letter-spacing: -.01em; text-shadow: none; }
.fut-card-pos { margin-top: .6cqw; font-size: 7.2cqw; }
.fut-card-flag { width: 72%; height: auto; margin-top: 1.4cqw; padding-top: 1.4cqw; border-top: 1px solid color-mix(in srgb, var(--card-text) 35%, transparent); object-fit: contain; }
.fut-card-club { width: 72%; height: auto; margin-top: .8cqw; padding-top: 1cqw; border-top: 1px solid color-mix(in srgb, var(--card-text) 35%, transparent); object-fit: contain; }
.fut-card-face { left: 36%; top: 13%; width: 52%; height: auto; object-fit: contain; object-position: center bottom; }
.fut-card-name { left: 16%; right: 16%; top: 51.5%; color: var(--card-text); font: 600 8.6cqw/1 "Aurora FUT 21 Condensed", "Arial Narrow", sans-serif; letter-spacing: 0; }
.fut-card-stats { left: 22%; right: 20%; top: 59.5%; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 2.4cqw; row-gap: .3cqw; padding-top: 1.5cqw; border-top: 1px solid color-mix(in srgb, var(--card-text) 35%, transparent); color: var(--card-text); font: 400 5.8cqw/1 "Aurora FUT 21 Condensed", "Arial Narrow", sans-serif; text-align: left; }
.fut-card-stats span { display: block; white-space: nowrap; }
.fut-card-stats span:nth-child(n+4) { padding-left: 2.4cqw; border-left: 1px solid color-mix(in srgb, var(--card-text) 35%, transparent); }
.fut-card-stats b { display: inline-block; min-width: 1.35em; color: inherit; font: inherit; }
.fut-card-stats small { color: inherit; font: inherit; opacity: 1; }
.fut-card.compact .fut-card-name { left: 14%; right: 14%; top: 55%; font-size: 10cqw; }
.fut-card.compact .fut-card-top { left: 16%; top: 16%; width: 20%; }
.fut-card.compact .fut-card-rating { font-size: 20cqw; }
.fut-card.compact .fut-card-pos { font-size: 10cqw; }
.fut-card.compact .fut-card-face { left: 35%; top: 11%; width: 55%; }
.fut-card.compact .fut-card-flag, .fut-card.compact .fut-card-club { width: 70%; margin-top: 3cqw; padding-top: 0; border-top: 0; }
/* FUTBIN-inspired database shell, retaining Aurora's purple identity. */
.site-header { height: 72px; padding: 0 22px; gap: 18px; background: rgba(7, 5, 11, .96); border-bottom-color: rgba(203, 166, 255, .12); }
.site-header .brand { flex: 0 0 auto; }
.site-header .brand-mark { width: 42px; height: 48px; }
.site-header nav { flex: 0 0 auto; gap: 0; }
.site-header nav button { min-width: auto; padding: 0 13px; font-size: 12px; }
.site-header nav button.active::after { left: 12px; right: 12px; }
.nav-search { order: 0; width: min(300px, 24vw); height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid rgba(206, 170, 255, .14); border-radius: 8px; background: #141019; color: #8f829e; }
.nav-search span { font-size: 21px; line-height: 1; }
.nav-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #fff; font-size: 12px; }
.nav-search input::placeholder { color: #796e82; }
main { width: min(1320px, calc(100% - 32px)); }
.page { padding-top: 28px; }
.database .page-head { min-height: 0; margin: 0 0 14px; padding: 24px 26px; border: 1px solid rgba(203, 166, 255, .11); border-radius: 14px; background: linear-gradient(110deg, rgba(24, 14, 34, .96), rgba(15, 10, 22, .96)); box-shadow: none; }
.database .page-head h1 { margin: 4px 0 5px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.04em; }
.database .page-head p { margin: 0; color: #978b9f; font-size: 13px; }
.filters { grid-template-columns: minmax(310px, 1.7fr) repeat(3, minmax(140px, 1fr)); gap: 1px; margin: 0; padding: 1px; border-radius: 10px 10px 0 0; background: rgba(213, 178, 255, .13); overflow: hidden; }
.filters label { gap: 6px; padding: 10px 12px; background: #110c17; }
.filters input, .filters select { height: 38px; padding: 0 11px; border-radius: 6px; background: #0b080f; }
.player-table-wrap { overflow-x: auto; border: 1px solid rgba(213, 178, 255, .12); border-radius: 0 0 10px 10px; background: #100c14; }
.player-table { width: 100%; min-width: 1000px; border-collapse: collapse; color: #dcd4e4; font-size: 11px; }
.player-table th { height: 42px; padding: 0 12px; border-bottom: 1px solid rgba(213, 178, 255, .13); background: #0b080e; color: #a99db9; font-size: 9px; letter-spacing: .09em; text-align: center; text-transform: uppercase; }
.player-table th:first-child { width: 34%; text-align: left; }
.player-table td { height: 83px; padding: 5px 12px; border-bottom: 1px solid rgba(213, 178, 255, .075); text-align: center; }
.player-table tbody tr { transition: background .18s ease; }
.player-table tbody tr:hover { background: rgba(168, 85, 247, .075); }
.player-table-main { width: 100%; display: flex; align-items: center; gap: 13px; padding: 0; border: 0; background: transparent; color: #fff; text-align: left; cursor: pointer; }
.player-table-main > span:last-child { min-width: 0; display: grid; gap: 6px; }
.player-table-main > span:last-child > b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.player-table-main > span:last-child > small { display: flex; align-items: center; gap: 6px; overflow: hidden; color: #8f8498; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.player-table-main > span:last-child > small img { width: 18px; max-height: 12px; object-fit: contain; }
.player-thumb { position: relative; flex: 0 0 52px; width: 52px; height: 70px; color: var(--card-text); overflow: hidden; }
.player-thumb-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.player-thumb-face { position: absolute; left: 35%; top: 12%; width: 54%; height: 46%; object-fit: contain; object-position: center bottom; }
.player-thumb > b { position: absolute; left: 17%; top: 17%; font: 400 12px/1 "Aurora FUT 21 Condensed", sans-serif; }
.player-thumb > small { position: absolute; left: 17%; top: 31%; width: 18%; font: 400 6px/1 "Aurora FUT 21 Condensed", sans-serif; text-align: center; }
.rating-cell { display: inline-grid; place-items: center; width: 33px; height: 33px; border: 1px solid rgba(88, 232, 182, .28); border-radius: 5px; background: rgba(88, 232, 182, .08); color: #d9fff1; font-size: 13px; }
.version-cell { color: #bbaacf; font-size: 10px; }
.stat-cell { display: inline-grid; place-items: center; min-width: 31px; height: 28px; border: 1px solid; border-radius: 4px; font-weight: 700; }
.stat-cell.elite { border-color: rgba(56, 211, 143, .36); background: rgba(56, 211, 143, .07); color: #79edb5; }
.stat-cell.good { border-color: rgba(236, 190, 72, .32); background: rgba(236, 190, 72, .06); color: #f2d477; }
.stat-cell.low { border-color: rgba(244, 94, 121, .32); background: rgba(244, 94, 121, .06); color: #ff839b; }
.players-database .load-more { margin-top: 14px; border-radius: 9px; }

/* Squad builder */
.squad-workspace { display: grid; grid-template-columns: minmax(720px, 1fr) 320px; gap: 14px; align-items: start; }
.squad-pitch-panel, .squad-controls, .squad-help, .squad-picker { border: 1px solid rgba(213, 178, 255, .12); border-radius: 12px; background: #100c14; overflow: hidden; }
.pitch-toolbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 16px; border-bottom: 1px solid rgba(213, 178, 255, .1); background: #0d0911; }
.pitch-toolbar > span { display: grid; gap: 4px; }
.pitch-toolbar b { font-size: 13px; }
.pitch-toolbar small { color: #817589; font-size: 9px; }
.pitch-toolbar button, .squad-panel-title button { border: 1px solid rgba(206, 170, 255, .18); border-radius: 7px; background: rgba(168, 85, 247, .08); color: #cdbdde; cursor: pointer; }
.pitch-toolbar button { min-height: 34px; padding: 0 12px; font-size: 10px; font-weight: 700; }
.pitch-toolbar button:disabled { opacity: .4; cursor: default; }
.squad-pitch { position: relative; min-height: 760px; overflow: hidden; isolation: isolate; background:
  radial-gradient(ellipse at center, transparent 0 20.8%, rgba(245,255,248,.2) 21% 21.35%, transparent 21.55%),
  radial-gradient(ellipse at 50% 6%, rgba(125,255,172,.13), transparent 34%),
  repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 12.5%, transparent 12.5% 25%),
  linear-gradient(180deg, #14512e 0%, #0d3f26 42%, #082e1c 100%); }
.squad-pitch::selection { background: transparent; }
.squad-pitch::before { content: ''; position: absolute; inset: 5%; border: 2px solid rgba(235,255,241,.24); border-radius: 3px; }
.squad-pitch::after { content: ''; position: absolute; left: 5%; right: 5%; top: 50%; border-top: 2px solid rgba(235,255,241,.22); }
.pitch-markings { position: absolute; left: 50%; top: 5%; bottom: 5%; width: 28%; transform: translateX(-50%); border-left: 2px solid rgba(235,255,241,.2); border-right: 2px solid rgba(235,255,241,.2); pointer-events: none; }
.pitch-markings::before, .pitch-markings::after { content: ''; position: absolute; left: 18%; right: 18%; height: 14%; border: 2px solid rgba(235,255,241,.2); }
.pitch-markings::before { top: 0; border-top: 0; }
.pitch-markings::after { bottom: 0; border-bottom: 0; }
.squad-slot { position: absolute; left: var(--slot-x); top: var(--slot-y); z-index: 3; width: 132px; display: grid; justify-items: center; transform: translate(-50%, -50%); }
.slot-position { margin-top: 2px; padding: 3px 8px; border-radius: 999px; background: rgba(7, 7, 10, .82); color: #fff; font-size: 8px; letter-spacing: .08em; }
.empty-slot { width: 96px; height: 132px; display: grid; place-items: center; border: 1px solid rgba(124, 255, 184, .36); background: linear-gradient(145deg, rgba(12, 21, 19, .92), rgba(7, 12, 11, .96)); clip-path: polygon(50% 0, 90% 12%, 88% 82%, 50% 100%, 12% 82%, 10% 12%); cursor: pointer; filter: drop-shadow(0 10px 12px rgba(0,0,0,.3)); transition: transform .18s ease, filter .18s ease; }
.empty-slot span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(88, 232, 182, .6); border-radius: 50%; color: #58e8b6; font-size: 25px; }
.empty-slot:hover { transform: translateY(-3px); filter: drop-shadow(0 0 12px rgba(88,232,182,.28)); }
.squad-player-card { position: relative; width: 126px; aspect-ratio: 644 / 900; container-type: inline-size; padding: 0; border: 0; background: transparent; color: var(--card-text); cursor: pointer; filter: drop-shadow(0 12px 12px rgba(0,0,0,.48)); transition: transform .18s ease, filter .18s ease; }
.squad-player-card:hover { transform: translateY(-4px); }
.squad-player-card:hover { filter: drop-shadow(0 16px 15px rgba(0,0,0,.55)) drop-shadow(0 0 8px color-mix(in srgb, var(--card-accent) 40%, transparent)); }
.squad-card-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: contain; }
.squad-card-face { position: absolute; left: 36%; top: 13%; z-index: 1; width: 52%; height: auto; object-fit: contain; object-position: center bottom; }
.squad-card-top { position: absolute; left: 19%; top: 15.5%; z-index: 2; display: grid; justify-items: center; width: 17%; color: var(--card-text); font-family: "Aurora FUT 21 Condensed", "Arial Narrow", sans-serif; line-height: .85; }
.squad-card-top b { font-size: 17.5cqw; font-weight: 400; letter-spacing: -.01em; }
.squad-card-top small { margin-top: .6cqw; font-size: 7.2cqw; }
.squad-card-flag, .squad-card-club { width: 72%; height: auto; object-fit: contain; }
.squad-card-flag { margin-top: 1.4cqw; padding-top: 1.4cqw; border-top: 1px solid color-mix(in srgb, var(--card-text) 35%, transparent); }
.squad-card-club { margin-top: .8cqw; padding-top: 1cqw; border-top: 1px solid color-mix(in srgb, var(--card-text) 35%, transparent); }
.squad-card-name { position: absolute; z-index: 2; left: 16%; right: 16%; top: 51.5%; overflow: hidden; color: var(--card-text); font: 600 8.6cqw/1 "Aurora FUT 21 Condensed", "Arial Narrow", sans-serif; text-align: center; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.squad-card-stats { position: absolute; z-index: 2; left: 22%; right: 20%; top: 59.5%; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 2.4cqw; row-gap: .3cqw; padding-top: 1.5cqw; border-top: 1px solid color-mix(in srgb, var(--card-text) 35%, transparent); color: var(--card-text); font: 400 5.8cqw/1 "Aurora FUT 21 Condensed", "Arial Narrow", sans-serif; text-align: left; }
.squad-card-stats span { display: block; white-space: nowrap; }
.squad-card-stats span:nth-child(n+4) { padding-left: 2.4cqw; border-left: 1px solid color-mix(in srgb, var(--card-text) 35%, transparent); }
.squad-card-stats b { display: inline-block; min-width: 1.35em; font: inherit; }
.squad-sidebar { display: grid; gap: 14px; }
.squad-controls { padding: 17px; }
.squad-controls > label { display: grid; gap: 6px; margin-top: 13px; }
.squad-controls > label > span { color: #8e8298; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.squad-controls input, .squad-controls select { width: 100%; height: 41px; padding: 0 11px; border: 1px solid rgba(206, 170, 255, .14); border-radius: 7px; background: #0b080f; color: #fff; }
.squad-score { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
.squad-score article { padding: 12px; border: 1px solid rgba(206, 170, 255, .1); border-radius: 8px; background: rgba(168,85,247,.045); }
.squad-score small { display: block; color: #8f8498; font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.squad-score b { display: block; margin-top: 4px; font-size: 24px; }
.squad-score em { color: #7e7286; font-size: 10px; font-style: normal; }
.squad-averages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 12px; }
.squad-averages span { display: grid; justify-items: center; gap: 3px; padding: 7px 2px; border-radius: 5px; background: #0b080f; }
.squad-averages b { font-size: 11px; }
.squad-averages small { color: #7e7286; font-size: 7px; }
.squad-help { padding: 22px; }
.squad-help h3 { margin: 8px 0 7px; font-size: 18px; }
.squad-help p { margin: 0; color: #8e8298; font-size: 11px; line-height: 1.6; }
.squad-picker { max-height: 560px; }
.squad-panel-title { display: flex; align-items: center; justify-content: space-between; padding: 14px 15px 10px; }
.squad-panel-title h2 { margin: 3px 0 0; font-size: 22px; }
.squad-panel-title button { width: 32px; height: 32px; font-size: 18px; }
.squad-search { margin: 0 12px 10px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid rgba(206, 170, 255, .14); border-radius: 7px; background: #0b080f; }
.squad-search input { width: 100%; height: 39px; border: 0; outline: 0; background: transparent; color: #fff; font-size: 10px; }
.squad-results { max-height: 450px; overflow-y: auto; border-top: 1px solid rgba(206, 170, 255, .09); }
.squad-results > button { width: 100%; min-height: 83px; display: flex; align-items: center; gap: 10px; padding: 6px 11px; border: 0; border-bottom: 1px solid rgba(206, 170, 255, .07); background: transparent; color: #fff; text-align: left; cursor: pointer; }
.squad-results > button:hover { background: rgba(168,85,247,.08); }
.squad-results > button > span:last-child { min-width: 0; display: grid; gap: 4px; }
.squad-results b, .squad-results small, .squad-results em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.squad-results b { font-size: 11px; }
.squad-results small { color: #ac9bb9; font-size: 8px; }
.squad-results em { color: #756a7d; font-size: 8px; font-style: normal; }
.squad-no-results { padding: 22px; color: #8e8298; font-size: 10px; text-align: center; }

@media (max-width: 1080px) {
  .site-header { gap: 9px; padding-inline: 14px; }
  .brand > span:last-child { display: none; }
  .nav-search { width: min(240px, 22vw); }
  .site-header nav button { padding-inline: 9px; }
  .header-status { display: none; }
  .squad-workspace { grid-template-columns: 1fr; }
  .squad-sidebar { grid-template-columns: minmax(260px, .75fr) minmax(340px, 1.25fr); }
  .squad-pitch { min-height: 740px; }
  .squad-player-card { width: 122px; }
  .squad-slot { width: 128px; }
}
@media (max-width: 760px) {
  .site-header { height: auto; min-height: 118px; display: grid; grid-template-columns: auto 1fr; align-content: center; padding-block: 9px; }
  .nav-search { width: 100%; }
  .site-header nav { grid-column: 1 / -1; width: 100%; overflow-x: auto; }
  .site-header nav button { min-height: 42px; flex: 1 0 auto; }
  main { width: min(100% - 18px, 1320px); }
  .database .page-head { padding: 19px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .search-field { grid-column: 1 / -1; }
  .squad-sidebar { grid-template-columns: 1fr; }
  .squad-pitch-panel { overflow-x: auto; }
  .pitch-toolbar, .squad-pitch { min-width: 720px; }
  .squad-pitch { min-height: 700px; }
  .squad-slot { width: 108px; }
  .empty-slot { width: 80px; height: 110px; }
  .empty-slot span { width: 31px; height: 31px; font-size: 21px; }
  .squad-player-card { width: 104px; }
  .slot-position { font-size: 7px; padding: 2px 6px; }
}
.squad-pitch::before, .squad-pitch::after, .pitch-markings { z-index: 0; }
.chem-links { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.chem-link { fill: none; stroke-linecap: round; stroke-width: 3; vector-effect: non-scaling-stroke; opacity: .96; transition: stroke .25s ease, opacity .25s ease; }
.chem-link.empty { stroke: rgba(229, 255, 237, .22); stroke-width: 1.5; stroke-dasharray: 5 6; opacity: .5; }
.chem-link.strong { stroke: #59e83f; filter: drop-shadow(0 0 4px rgba(89, 232, 63, .48)); }
.chem-link.medium { stroke: #f1b93c; filter: drop-shadow(0 0 4px rgba(241, 185, 60, .4)); }
.chem-link.weak { stroke: #ff3f66; filter: drop-shadow(0 0 4px rgba(255, 63, 102, .42)); }

