﻿:root {
  color-scheme: dark;
  --ink: #f8fafc;
  --muted: #9aa8b7;
  --soft: #d9e4ee;
  --bg: #070a12;
  --panel: #101724;
  --panel-2: #151f2e;
  --line: rgba(255,255,255,.12);
  --gold: #f8c35b;
  --cyan: #5de4ff;
  --pink: #ff6dd8;
  --green: #38d996;
  --red: #ff6f61;
  --blue: #6e8cff;
  --shadow: 0 24px 70px rgba(0,0,0,.42);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 16% -8%, rgba(93,228,255,.24), transparent 28%),
    radial-gradient(circle at 82% 2%, rgba(255,109,216,.19), transparent 31%),
    linear-gradient(180deg, #080b13 0%, #0b111c 54%, #090b12 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, select, input { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin: 0; }
.page-shell { min-height: 100vh; }
.hero {
  padding: 20px clamp(16px, 4vw, 56px) 34px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 45%),
    linear-gradient(180deg, rgba(8,12,20,.82), rgba(8,12,20,.48));
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #09111d;
  background: linear-gradient(135deg, var(--gold), #fff1a6 46%, var(--cyan));
  box-shadow: 0 10px 30px rgba(248,195,91,.24);
}
.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}
.icon-button:hover { background: rgba(255,255,255,.11); }
.icon-button:disabled { opacity: .55; cursor: wait; }
.icon-button svg { width: 18px; height: 18px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  gap: clamp(22px, 5vw, 72px);
  align-items: end;
}
.eyebrow {
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}
.hero h1 {
  max-width: 820px;
  font-size: clamp(36px, 7vw, 82px);
  line-height: .94;
  letter-spacing: 0;
}
.hero-text {
  max-width: 620px;
  margin-top: 18px;
  color: var(--soft);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
}
.hero-controls {
  max-width: 780px;
  margin-top: 26px;
  display: grid;
  grid-template-columns: 230px minmax(230px, 1fr);
  gap: 12px;
}
.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.field select, .field input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255,255,255,.08);
  color: #fff;
  outline: none;
}
.field input::placeholder { color: rgba(255,255,255,.42); }
.field select:focus, .field input:focus { border-color: rgba(93,228,255,.7); box-shadow: 0 0 0 4px rgba(93,228,255,.11); }
.field.compact { width: min(260px, 100%); }
.spotlight {
  min-height: 500px;
  display: grid;
  align-content: end;
}
.featured-card .pick-card { width: min(100%, 342px); margin-left: auto; }
main { padding: 24px clamp(16px, 4vw, 56px) 56px; }
.notice {
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(248,195,91,.35);
  border-radius: 14px;
  background: rgba(248,195,91,.12);
  color: #ffe1a4;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.metrics article {
  min-height: 92px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  box-shadow: 0 14px 42px rgba(0,0,0,.18);
}
.metrics span { color: var(--muted); font-size: 12px; font-weight: 700; }
.metrics strong { font-size: 27px; font-variant-numeric: tabular-nums; }
.metrics .positive strong { color: var(--green); }
.metrics .negative strong { color: var(--red); }
.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.segments {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  overflow-x: auto;
}
.segment {
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}
.segment.active { background: #fff; color: #101724; box-shadow: 0 10px 30px rgba(255,255,255,.12); }
.cards-section {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255,255,255,.045);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.section-heading, .panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
h2 { font-size: clamp(20px, 2vw, 26px); letter-spacing: 0; }
.count-label { color: var(--muted); font-weight: 750; }
.cards-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(292px, 338px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 20px;
}
.cards-track:focus { outline: 2px solid rgba(93,228,255,.45); outline-offset: 4px; }
.pick-card {
  position: relative;
  min-height: 512px;
  scroll-snap-align: start;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 24px;
  padding: 14px;
  background:
    linear-gradient(140deg, rgba(255,255,255,.28), rgba(255,255,255,.05) 34%, rgba(93,228,255,.16) 55%, rgba(255,109,216,.18)),
    #111827;
  box-shadow: 0 24px 60px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.24);
  transform-style: preserve-3d;
}
.pick-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -2;
  opacity: .42;
  background:
    conic-gradient(from 180deg, transparent, rgba(93,228,255,.7), rgba(248,195,91,.65), rgba(255,109,216,.7), transparent 72%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.18) 0 1px, transparent 1px 8px);
  filter: blur(1px);
  animation: drift 10s linear infinite;
}
.pick-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 23px;
  background: linear-gradient(180deg, rgba(8,12,20,.58), rgba(8,12,20,.95));
}
.shine-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .78;
  mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 22%, rgba(255,255,255,.32) 43%, transparent 58%);
  transform: translateX(-28%);
}
.card-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.rarity {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #fff0ad);
  font-size: 11px;
  font-weight: 900;
}
.status-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255,255,255,.11);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}
.status-won { color: #07140f; background: var(--green); }
.status-lost { color: #1f0806; background: var(--red); }
.status-push { color: #201702; background: var(--gold); }
.status-pending { color: #e8eef6; background: rgba(255,255,255,.14); }
.player-art {
  position: relative;
  height: 196px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: end center;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.28), transparent 30%),
    linear-gradient(135deg, rgba(93,228,255,.28), rgba(255,109,216,.2));
}
.player-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}
.player-initials {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  color: #08111d;
  background: linear-gradient(135deg, #fff, var(--cyan) 45%, var(--gold));
  font-size: 40px;
  font-weight: 950;
  box-shadow: 0 20px 60px rgba(93,228,255,.22);
}
.art-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255,255,255,.88);
  font-size: 11px;
  font-weight: 800;
}
.card-body { position: relative; z-index: 2; padding-top: 14px; }
.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.entity-type { color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.entity-name {
  margin-top: 2px;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: 0;
}
.confidence {
  min-width: 60px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #09111d;
  background: linear-gradient(135deg, var(--cyan), #fff);
  font-size: 19px;
}
.fixture { min-height: 20px; color: var(--soft); font-size: 13px; }
.market-box {
  margin: 13px 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
}
.market-label { display: block; color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.market-line { display: block; margin-top: 2px; font-size: 21px; line-height: 1.05; }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stats-grid span {
  min-height: 50px;
  padding: 9px;
  border-radius: 14px;
  background: rgba(255,255,255,.075);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.stats-grid strong { display: block; margin-top: 3px; color: #fff; font-size: 14px; }
.reason {
  margin-top: 12px;
  color: #dce8f4;
  font-size: 12px;
  line-height: 1.45;
}
.profit-positive { color: var(--green) !important; }
.profit-negative { color: var(--red) !important; }
.lower-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
}
.snapshot-list { margin: 0; }
.snapshot-list div, .roi-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.snapshot-list div:last-child, .roi-row:last-child { border-bottom: 0; }
dt, .roi-row span { color: var(--muted); font-size: 13px; }
dd, .roi-row strong { margin: 0; font-weight: 850; }
.market-row { margin-bottom: 13px; }
.market-label-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--soft); }
.market-bar { height: 7px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.market-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--pink), var(--gold)); }
.empty { padding: 44px 16px; text-align: center; color: var(--muted); }
@keyframes drift {
  from { transform: rotate(0deg) translate3d(0,0,0); }
  to { transform: rotate(360deg) translate3d(0,0,0); }
}
@media (hover: hover) {
  .pick-card { transition: transform .22s ease, box-shadow .22s ease; }
  .pick-card:hover { transform: translateY(-6px) rotateX(1deg); box-shadow: 0 30px 80px rgba(0,0,0,.52), 0 0 34px rgba(93,228,255,.13); }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .spotlight { min-height: 0; }
  .featured-card .pick-card { margin-left: 0; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .lower-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hero { padding-inline: 14px; }
  main { padding-inline: 14px; }
  .hero-controls { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .toolbar { align-items: stretch; flex-direction: column; }
  .field.compact { width: 100%; }
  .cards-track { grid-auto-columns: minmax(272px, 86vw); }
  .pick-card { min-height: 500px; }
}
