/* Aurora FUT 21 — FIFA 21-style theme: deep navy, electric cyan, violet and pink.
   Change the brand colours here. */
:root {
  --bg: #070a1f;
  --bg2: #0b1030;
  --panel: #10173f;
  --panel2: #172057;
  --line: rgba(140, 160, 255, .15);
  --text: #eef1ff;
  --muted: #9aa3d6;
  --cyan: #00e7ff;
  --violet: #7b5cff;
  --pink: #ff2d8d;
  --lime: #c6ff3d;
  --gold: #f5c84c;
  --green: #2ef59a;
  --orange: #ffae3d;
  --red: #ff4d5e;
  --brand: linear-gradient(90deg, var(--cyan), var(--violet) 50%, var(--pink));
  --radius: 14px;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(255, 45, 141, .16), transparent 60%),
    radial-gradient(900px 520px at -5% 5%, rgba(0, 231, 255, .13), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(123, 92, 255, .14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.5 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.noscroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; letter-spacing: .01em; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(30px, 4vw, 44px); text-transform: uppercase; }
h2 { font-size: 22px; text-transform: uppercase; }
h3 { font-size: 18px; text-transform: uppercase; margin-bottom: 10px; }
code { background: rgba(255, 255, 255, .07); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 22px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; padding-top: 24px; padding-bottom: 60px; }
input, select, button { font: inherit; color: inherit; }
input, select {
  background: rgba(5, 8, 28, .7);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  width: 100%;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
select option { background: var(--bg2); }
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 231, 255, .15); }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 500; }
label.check { flex-direction: row; align-items: center; gap: 8px; cursor: pointer; color: var(--text); }
label.check input { width: 17px; height: 17px; accent-color: var(--pink); padding: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- buttons, chips, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06); cursor: pointer; font-weight: 600; font-size: 14px;
  transition: transform .12s, background .15s, border-color .15s; white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: var(--text); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--brand); border: 0; color: #fff; box-shadow: 0 6px 24px rgba(255, 45, 141, .28); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 13px; font-size: 13px; }
.btn.file { position: relative; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.icon-btn { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; display: inline-grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--red); border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .chip { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 13px; font-weight: 600; }
.chips button:hover, .chip:hover { border-color: var(--cyan); }
.chips button.on { background: var(--cyan); color: #04122a; border-color: var(--cyan); }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); font-family: var(--cond); }
.tag.ok { background: rgba(46, 245, 154, .15); color: var(--green); border-color: rgba(46, 245, 154, .4); }
.tag.warn { background: rgba(255, 174, 61, .15); color: var(--orange); border-color: rgba(255, 174, 61, .4); }
.tag[class*="t-"] { background: linear-gradient(135deg, var(--c1), var(--c2)); color: var(--ink); border: 0; }
.seg { display: inline-flex; background: rgba(5, 8, 28, .7); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { background: none; border: 0; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.seg.small button { padding: 4px 11px; font-size: 12px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 6px 0 22px; }
.tabs a { padding: 10px 16px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: 16px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--text); border-image: var(--brand) 1; border-bottom-width: 3px; border-bottom-style: solid; }
.tabs.small a { font-size: 14px; padding: 8px 12px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(7, 10, 31, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); opacity: .8; }
.top-in { max-width: 1280px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 22px; }
.logo { display: flex; align-items: center; gap: 9px; flex: none; }
.logo:hover { color: var(--text); }
.logo-mark { width: 34px; height: 34px; }
.logo-txt { font-family: var(--cond); font-weight: 800; font-size: 24px; letter-spacing: .14em; }
.logo-chip { font-family: var(--cond); font-weight: 800; font-size: 13px; padding: 2px 8px; border-radius: 6px; background: var(--brand); color: #fff; letter-spacing: .06em; }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; padding: 8px 12px; border-radius: 8px; font-family: var(--cond); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.active { color: var(--text); background: rgba(0, 231, 255, .1); box-shadow: inset 0 -2px 0 var(--cyan); }
.nav a[data-badge]:not([data-badge=""])::after { content: attr(data-badge); position: absolute; top: 1px; right: 0; background: var(--pink); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font); }
.top-search { position: relative; width: 240px; flex: none; }
.top-search input { border-radius: 999px; padding-left: 36px; background: rgba(5, 8, 28, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3d6' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 12px 50% / 16px; }
.sample-bar { background: linear-gradient(90deg, rgba(255, 174, 61, .16), rgba(255, 45, 141, .12)); border-bottom: 1px solid rgba(255, 174, 61, .3); color: #ffd9a3; text-align: center; font-size: 13px; padding: 7px 20px; }
.sample-bar a { text-decoration: underline; }

/* ---------- suggest dropdown ---------- */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); padding: 6px; display: none; z-index: 60; max-height: 420px; overflow: auto; min-width: 280px; }
.suggest.open { display: block; }
.suggest button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 7px 8px; border-radius: 8px; cursor: pointer; text-align: left; }
.suggest button:hover, .suggest button.sel { background: rgba(0, 231, 255, .1); }
.suggest button span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.suggest button b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest small { color: var(--muted); font-size: 12px; }
.suggest em { font-style: normal; font-weight: 600; font-size: 13px; white-space: nowrap; }

/* ---------- panels & blocks ---------- */
.panel { background: linear-gradient(180deg, rgba(23, 32, 87, .55), rgba(16, 23, 63, .55)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.panel-head h3 { margin: 0; }
.page-head { margin-bottom: 20px; }
.page-head p { margin: 6px 0 0; }
.block { margin: 30px 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.block-head a { color: var(--cyan); font-weight: 600; font-size: 14px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cols2 > .block { margin: 12px 0; }
.list { display: flex; flex-direction: column; gap: 6px; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty.small { padding: 24px 14px; }
.empty h2 { color: var(--text); margin-bottom: 14px; }
.note { color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a { color: var(--cyan); }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hscroll { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--panel2) transparent; }
.hscroll > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; justify-items: center; }
.more { text-align: center; margin: 24px 0; }

/* ---------- player rows ---------- */
.prow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid transparent; transition: background .12s, border-color .12s; }
.prow:hover { background: rgba(0, 231, 255, .07); border-color: var(--line); color: var(--text); }
.prow-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.prow-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.prow-name small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-price { font-weight: 700; white-space: nowrap; font-size: 14px; min-width: 70px; text-align: right; }
.rchip { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 4px; border-radius: 7px; font-family: var(--cond); font-weight: 800; font-size: 17px; background: linear-gradient(135deg, var(--c1, #445), var(--c2, #667)); color: var(--ink, #fff); flex: none; clip-path: polygon(16% 0, 84% 0, 100% 20%, 100% 100%, 0 100%, 0 20%); }
.pack-chip { background: var(--brand); color: #fff; }
.badge { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 4px; border-radius: 5px; background: var(--bc); color: var(--bi); font-family: var(--cond); font-weight: 800; font-size: 11px; letter-spacing: .03em; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.flag { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); }
.coin { display: inline-block; width: .85em; height: .85em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3b0, #f5c84c 45%, #b8861c); box-shadow: inset 0 0 0 1.5px rgba(120, 80, 0, .5); margin-right: 4px; vertical-align: -.08em; }
.chg { font-weight: 700; font-size: 13px; white-space: nowrap; color: var(--muted); }
.chg.up { color: var(--green); }
.chg.down { color: var(--red); }
.stars { color: var(--gold); letter-spacing: 1px; }
.stars i { color: rgba(255, 255, 255, .15); font-style: normal; }

/* ---------- FUT card: the card itself lives in css/fut-card.css, sizes per context are here ---------- */
.fcard { --w: 150px; }
.wa-item:hover .fut-shine { opacity: 1; background-position: -30% 0; -webkit-mask: var(--fut-art) center / 100% 100% no-repeat; mask: var(--fut-art) center / 100% 100% no-repeat; }
.fcard.sm { --w: 104px; }
.fcard.md { --w: 140px; }
.fcard.lg { --w: 190px; }
.fcard.xl { --w: 250px; }
.fcard.mini { --w: 70px; }

/* card types */
.t-bronze { --c1: #8b5530; --c2: #d69a68; --ink: #2a1306; }
.t-bronze-rare { --c1: #96521f; --c2: #f0b27a; --ink: #2a1306; }
.t-silver { --c1: #8a949c; --c2: #e4e9ec; --ink: #1c2328; }
.t-silver-rare { --c1: #96a2ac; --c2: #ffffff; --ink: #1c2328; }
.t-gold { --c1: #b88d2f; --c2: #f0d58e; --ink: #2b1f05; }
.t-gold-rare { --c1: #cf9a17; --c2: #fff1a6; --ink: #2a1c00; }
.t-totw { --c1: #0b0b0d; --c2: #3b3627; --ink: #f3d27a; }
.t-toty { --c1: #051056; --c2: #2b55e6; --ink: #f8d77e; }
.t-tots { --c1: #0657b8; --c2: #7fdcff; --ink: #fff5c9; }
.t-fs { --c1: #05223f; --c2: #19e39a; --ink: #effff8; }
.t-fb { --c1: #ff2f9b; --c2: #ffd23f; --ink: #2a0019; }
.t-headliners { --c1: #121212; --c2: #ff6a00; --ink: #ffffff; }
.t-otw { --c1: #2a0861; --c2: #ff2d8d; --ink: #ffffff; }
.t-rb { --c1: #4d000d; --c2: #ff3344; --ink: #ffffff; }
.t-freeze { --c1: #3d98ff; --c2: #e2f6ff; --ink: #062033; }
.t-icon { --c1: #d9c99c; --c2: #fffdf4; --ink: #3a2a06; }
.t-sbc { --c1: #064d3e; --c2: #2de0b0; --ink: #f2fffb; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; padding: 26px 0 10px; }
.kicker { font-family: var(--cond); text-transform: uppercase; letter-spacing: .2em; color: var(--cyan); font-weight: 700; margin: 0 0 10px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: .98; }
.lead { color: var(--muted); font-size: 17px; max-width: 560px; margin: 14px 0 20px; }
.hero-search { position: relative; max-width: 520px; }
.hero-search input { padding: 14px 18px 14px 46px; font-size: 16px; border-radius: 999px; background: rgba(5, 8, 28, .8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300e7ff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 17px 50% / 19px; border-color: rgba(0, 231, 255, .3); }
.hero-search.narrow { max-width: 440px; margin-bottom: 18px; }
.hero-search.narrow input { padding: 10px 14px 10px 40px; font-size: 15px; background-position: 13px 50%; background-size: 16px; }
.hero-cards { position: relative; height: 380px; }
.hero-cards .hc { position: absolute; top: 50%; left: 50%; }
.hero-cards .hc0 { transform: translate(-50%, -50%) scale(1.08); z-index: 3; }
.hero-cards .hc1 { transform: translate(-112%, -44%) rotate(-9deg) scale(.86); z-index: 2; }
.hero-cards .hc2 { transform: translate(12%, -44%) rotate(9deg) scale(.86); z-index: 1; }
.hero-cards .hc0:hover { transform: translate(-50%, -53%) scale(1.1); }
.hero-cards .hc1:hover { transform: translate(-112%, -47%) rotate(-9deg) scale(.9); }
.hero-cards .hc2:hover { transform: translate(12%, -47%) rotate(9deg) scale(.9); }
.hero-cards::before { content: ''; position: absolute; inset: 10% 15%; background: radial-gradient(closest-side, rgba(123, 92, 255, .5), transparent); filter: blur(30px); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.tile { background: linear-gradient(160deg, rgba(23, 32, 87, .7), rgba(16, 23, 63, .5)); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.tile::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.tile:hover { border-color: rgba(0, 231, 255, .4); color: var(--text); }
.tile small { color: var(--muted); text-transform: uppercase; font-family: var(--cond); font-weight: 700; letter-spacing: .08em; }
.tile b { font-family: var(--cond); font-size: 36px; line-height: 1.1; }
.tile span { color: var(--muted); font-size: 13px; }

/* ---------- database ---------- */
.db { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }
.filters { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; }
.db-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.db-tools { display: flex; gap: 10px; align-items: center; }
.db-tools select { width: auto; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.ptable, .ctable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th, .ctable th { text-align: left; font-family: var(--cond); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 12px; background: rgba(5, 8, 28, .6); white-space: nowrap; }
.ptable td, .ctable td { padding: 8px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.ptable tbody tr { cursor: pointer; }
.ptable tbody tr:hover { background: rgba(0, 231, 255, .06); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { font-weight: 700; }
.tname { display: flex; align-items: center; gap: 10px; }
.tname span { display: flex; flex-direction: column; }
.tname small { color: var(--muted); font-size: 12px; }
.tclub { display: flex; gap: 6px; align-items: center; }
.v-hi { color: var(--green); }
.v-good { color: var(--lime); }
.v-mid { color: var(--orange); }
.v-low { color: var(--red); }

/* ---------- player page ---------- */
.pp { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.pp-side { position: sticky; top: 76px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pp-card { padding: 10px; position: relative; }
.pp-card::before { content: ''; position: absolute; inset: 10%; background: radial-gradient(closest-side, rgba(0, 231, 255, .35), transparent); filter: blur(24px); }
.pp-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.side-block { width: 100%; }
.side-block h3 { font-size: 15px; color: var(--muted); }
.mini-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pp-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); margin: 10px 0 20px; }
.pp-meta i { font-style: normal; opacity: .5; }
.pp-meta a:hover { color: var(--cyan); }
.pp-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 18px; }
.pp-grid .panel { margin-bottom: 18px; }
dl.info { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
dl.info dt { color: var(--muted); }
dl.info dd { margin: 0; font-weight: 600; text-align: right; }
.price-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.big-price { font-family: var(--cond); font-size: 36px; font-weight: 800; line-height: 1.1; }
.price-ch { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.price-ch small { color: var(--muted); }
.price-lohi { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 4px; }
.price-lohi b { color: var(--text); }
.stat-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 26px; }
.stat-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: 17px; border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 6px; }
.stat-head b { font-size: 24px; }
.sbar { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; margin: 5px 0; font-size: 13px; }
.sbar-l { color: var(--muted); }
.sbar-v { font-weight: 700; text-align: right; }
.sbar-v i { font-style: normal; font-size: 11px; color: var(--cyan); margin-right: 5px; }
.sbar-t { grid-column: 1 / -1; height: 4px; background: rgba(255, 255, 255, .07); border-radius: 2px; overflow: hidden; }
.sbar-t span { display: block; height: 100%; background: currentColor; border-radius: 2px; }

/* ---------- chart ---------- */
.chart { position: relative; margin-top: 10px; }
.chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chart .grid line { stroke: rgba(255, 255, 255, .07); }
.chart .grid text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .cx { stroke: rgba(255, 255, 255, .25); stroke-dasharray: 3 3; opacity: 0; }
.chart .cd { opacity: 0; stroke: var(--bg); stroke-width: 2; }
.chart.hover .cx, .chart.hover .cd { opacity: 1; }
.ctip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; display: flex; flex-direction: column; align-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.ctip span { color: var(--muted); }
.chart.hover .ctip { opacity: 1; }

/* ---------- squad builder ---------- */
.sq { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.sq-pitch { min-width: 0; }
.pitch {
  position: relative; width: 100%; max-width: 760px; margin: 0 auto; aspect-ratio: 10 / 11;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 9.09%, transparent 9.09% 18.18%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 231, 255, .14), transparent 70%),
    linear-gradient(180deg, #0c2f4a 0%, #0b2241 50%, #101a4a 100%);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .45), 0 20px 50px rgba(0, 0, 0, .35);
}
.pitch .marks { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: .35; }
.pitch .marks .dot { fill: rgba(255, 255, 255, .2); stroke: none; }
.pitch .links { position: absolute; inset: 0; width: 100%; height: 100%; }
.lk { stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.lk-n { stroke: rgba(255, 255, 255, .1); stroke-dasharray: 4 6; stroke-width: 2; }
.lk-0 { stroke: var(--red); }
.lk-1 { stroke: var(--orange); }
.lk-2 { stroke: var(--green); filter: drop-shadow(0 0 4px rgba(46, 245, 154, .6)); }
.slot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; z-index: 2; }
.slot.filled { cursor: grab; }
.slot.dragging { opacity: .4; }
.slot.drop .slot-card, .slot.drop .slot-empty { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 10px; }
.slot-card { cursor: pointer; }
.slot-empty { width: 70px; height: 112px; border: 2px dashed rgba(255, 255, 255, .28); background: rgba(5, 8, 28, .45); border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: border-color .15s, background .15s; }
.slot-empty:hover { border-color: var(--cyan); background: rgba(0, 231, 255, .1); }
.slot-empty span { font-size: 30px; line-height: 1; color: var(--cyan); font-weight: 300; }
.slot-empty small { font-family: var(--cond); font-weight: 700; font-size: 14px; color: var(--muted); }
.slot-chem { position: absolute; top: -6px; right: -8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-family: var(--cond); font-weight: 800; font-size: 14px; background: var(--bg); border: 2px solid currentColor; z-index: 3; }
.slot-x { position: absolute; top: -6px; left: -8px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(5, 8, 28, .9); color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; opacity: 0; transition: opacity .15s; z-index: 3; }
.slot:hover .slot-x, .slot-x:focus-visible { opacity: 1; }
.slot-x:hover { background: var(--red); color: #fff; }
.slot-pos { margin-top: 4px; font-family: var(--cond); font-weight: 800; font-size: 13px; padding: 1px 8px; border-radius: 5px; background: rgba(5, 8, 28, .85); display: flex; align-items: center; gap: 4px; }
.slot-pos button { background: var(--orange); color: #1a0d00; border: 0; border-radius: 4px; font-size: 11px; padding: 0 4px; cursor: pointer; font-weight: 800; }
.fit-2 { color: var(--green); }
.fit-1 { color: var(--orange); }
.fit-0 { color: var(--red); }
.c-max { color: var(--green); }
.c-hi { color: var(--lime); }
.c-mid { color: var(--orange); }
.c-low { color: var(--red); }
.hint { text-align: center; color: var(--muted); font-size: 13px; }
.sq-side { position: sticky; top: 76px; }
.sum-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.sum small { display: block; color: var(--muted); text-transform: uppercase; font-family: var(--cond); font-weight: 700; letter-spacing: .08em; font-size: 13px; }
.sum b { font-family: var(--cond); font-size: 40px; line-height: 1; font-weight: 800; }
.sum em { font-style: normal; font-size: 20px; color: var(--muted); }
.chem-bar { height: 6px; background: rgba(255, 255, 255, .08); border-radius: 3px; overflow: hidden; margin: 14px 0; }
.chem-bar span { display: block; height: 100%; background: currentColor; transition: width .3s; }
.sum-price { display: flex; justify-content: space-between; align-items: center; }
.sum-price b { font-family: var(--cond); font-size: 22px; }
.avgs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; font-family: var(--cond); font-size: 12px; color: var(--muted); font-weight: 700; }
.avgs span { display: flex; flex-direction: column; }
.avgs b { font-size: 20px; }
.sq-ctrl { display: flex; flex-direction: column; gap: 12px; }
.sq-ctrl .btn-row { margin-top: 2px; }
.saved { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.saved:first-of-type { border-top: 0; }
.saved > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.saved b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved small { color: var(--muted); font-size: 12px; }
.reqs ul { list-style: none; margin: 0; padding: 0; }
.reqs li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.reqs li:first-child { border-top: 0; }
.reqs li > span:nth-child(2) { flex: 1; }
.reqs .mark { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.reqs li.ok .mark { background: var(--green); color: #002914; }
.reqs li.no .mark { background: rgba(255, 77, 94, .2); color: var(--red); }
.reqs li.no b { color: var(--red); }
.reqs li.ok b { color: var(--green); }
.reqs.all-ok { border-color: rgba(46, 245, 154, .5); box-shadow: 0 0 30px rgba(46, 245, 154, .12); }

/* ---------- modal / picker ---------- */
.modal { position: fixed; inset: 0; background: rgba(2, 3, 14, .72); backdrop-filter: blur(6px); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal-box { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; width: min(640px, 100%); max-height: min(720px, 90vh); display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
.picker { display: flex; flex-direction: column; min-height: 0; padding: 18px 20px; gap: 12px; }
.picker-head { display: flex; justify-content: space-between; align-items: center; }
.picker-head h3 { margin: 0; }
.picker-tools { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.picker-tools select { width: auto; }
.picker-tools .check { white-space: nowrap; }
.picker-list { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; min-height: 200px; max-height: 60vh; margin: 0 -6px; padding: 0 6px; }
.pk-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid transparent; cursor: pointer; text-align: left; }
.pk-row:hover { background: rgba(0, 231, 255, .08); border-color: var(--line); }
.pk-chem { font-family: var(--cond); font-weight: 800; font-size: 15px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; flex: none; }
.share-in { margin-top: 4px; }

/* ---------- SBCs ---------- */
.sbc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 18px; }
.sbc-card { display: flex; gap: 18px; align-items: center; margin: 0; transition: border-color .15s, transform .15s; }
.sbc-card:hover { border-color: rgba(0, 231, 255, .45); transform: translateY(-2px); color: var(--text); }
.sbc-art { flex: none; display: grid; place-items: center; width: 110px; }
.sbc-art.big { width: 210px; }
.sbc-body { flex: 1; min-width: 0; }
.sbc-body h3 { margin: 8px 0 4px; font-size: 21px; }
.sbc-body p { margin: 0 0 10px; }
.sbc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sbc-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.sbc-meta b { color: var(--text); }
.progress { height: 6px; background: rgba(255, 255, 255, .08); border-radius: 3px; overflow: hidden; margin: 10px 0 4px; }
.progress span { display: block; height: 100%; background: var(--brand); }
.pack { width: 96px; height: 136px; border-radius: 10px; background: linear-gradient(160deg, #1e2b7a, #7b5cff 45%, #ff2d8d); display: grid; place-items: end center; padding: 10px 8px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.pack::before { content: 'PACK'; position: absolute; top: 20px; left: 0; right: 0; font-family: var(--cond); font-weight: 800; letter-spacing: .2em; font-size: 20px; color: rgba(255, 255, 255, .9); }
.pack::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 10px); }
.pack span { font-family: var(--cond); font-weight: 700; font-size: 12px; line-height: 1.1; text-transform: uppercase; position: relative; z-index: 1; }
.pack.big { width: 160px; height: 226px; }
.pack.big::before { top: 40px; font-size: 30px; }
.pack.big span { font-size: 16px; }
.sbc-prog { font-family: var(--cond); font-weight: 800; font-size: 15px; color: var(--muted); }
.sbc-prog.done { color: var(--green); }
.sbc-top { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; padding: 24px; }
.sbc-top h1 { margin: 10px 0 0; }
.sbc-top .lead { margin: 8px 0 16px; }
.sbc-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 10px 30px; justify-content: start; }
.sbc-stats small { display: block; color: var(--muted); font-family: var(--cond); text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }
.sbc-stats b { font-family: var(--cond); font-size: 22px; }
.segs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.sbc-seg { margin: 0; display: flex; flex-direction: column; }
.sbc-seg.done { border-color: rgba(46, 245, 154, .45); }
.sbc-seg h3 { display: flex; align-items: center; gap: 10px; }
.seg-n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-size: 15px; color: #fff; flex: none; }
.req-list { margin: 4px 0 12px; padding-left: 18px; flex: 1; }
.req-list li { margin: 4px 0; font-size: 14px; }
.req-list li::marker { color: var(--cyan); }
.seg-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.seg-foot b { color: var(--text); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.calc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 14px 0; }
.calc-grid input { text-align: center; font-family: var(--cond); font-size: 20px; font-weight: 800; padding: 8px 4px; }
.calc-fill { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.calc-out { display: flex; gap: 30px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.calc-out small { display: block; color: var(--muted); text-transform: uppercase; font-family: var(--cond); font-weight: 700; letter-spacing: .06em; }
.calc-out b { font-family: var(--cond); font-size: 44px; line-height: 1; }
.calc-out #calcCost { font-size: 30px; }
.calc-target { display: flex; align-items: flex-end; gap: 10px; margin: 14px 0; }
.calc-target label { width: 160px; }
.cpart { display: inline-flex; gap: 3px; margin-right: 10px; font-family: var(--cond); font-size: 16px; }
.cpart b { color: var(--cyan); }

/* ---------- market ---------- */
.wl-row { display: flex; align-items: center; gap: 8px; }
.wl-row > .prow { flex: 1; min-width: 0; }
.wl-row.hit > .prow { border-color: rgba(46, 245, 154, .5); background: rgba(46, 245, 154, .07); }
.wl-t { width: 120px; flex: none; }
.wl-t small { font-size: 11px; }
.wl-t input { padding: 6px 8px; }
.pe { display: flex; flex-direction: column; gap: 6px; }

/* ---------- compare ---------- */
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th { padding: 16px 10px; vertical-align: bottom; background: rgba(5, 8, 28, .5); }
.cmp td { padding: 7px 14px; border-top: 1px solid var(--line); text-align: center; }
.cmp td:first-child { text-align: left; color: var(--muted); white-space: nowrap; }
.cmp td.best { background: rgba(46, 245, 154, .08); box-shadow: inset 3px 0 0 var(--green); }
.cmp-head td { background: rgba(23, 32, 87, .6); font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: 16px; color: var(--text) !important; }
.cmp-head b { font-size: 20px; }
.cmp-card { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cbar { display: inline-block; width: 70px; height: 5px; background: rgba(255, 255, 255, .08); border-radius: 3px; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.cbar span { display: block; height: 100%; background: currentColor; }

/* ---------- data ---------- */
pre.code { background: rgba(3, 5, 20, .8); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 12.5px; line-height: 1.55; color: #c7d0ff; }

/* ---------- footer & toast ---------- */
.foot { border-top: 1px solid var(--line); padding: 22px 0; font-size: 13px; background: rgba(5, 8, 28, .5); }
.foot-in { display: flex; justify-content: space-between; gap: 10px 30px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--cyan); padding: 11px 18px; border-radius: 10px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; font-weight: 600; max-width: calc(100% - 40px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .top-search { display: none; }
  .sq { grid-template-columns: 1fr; }
  .sq-side { position: static; }
  .pp-grid { grid-template-columns: 1fr; }
  .stat-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-cards { height: 330px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cols2, .calc { grid-template-columns: 1fr; }
  .db { grid-template-columns: 1fr; }
  .filters { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .pp { grid-template-columns: 1fr; }
  .pp-side { position: static; }
  .pp-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .sbc-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .sbc-stats { grid-template-columns: repeat(2, auto); justify-content: center; }
  .sbc-top .sbc-tags { justify-content: center; }
}
@media (max-width: 640px) {
  .top-in { flex-wrap: wrap; gap: 6px 14px; padding: 8px 14px; }
  .nav { order: 3; flex-basis: 100%; }
  .nav a { font-size: 15px; padding: 6px 9px; }
  .wrap { padding: 0 14px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .grid .fcard { --w: 118px; }
  .fcard.mini { --w: 47px; }
  .slot-empty { width: 52px; height: 74px; }
  .slot-empty span { font-size: 22px; }
  .slot-empty small, .slot-pos { font-size: 11px; }
  .slot-chem { width: 19px; height: 19px; font-size: 11px; right: -6px; }
  .stat-cols { grid-template-columns: 1fr; }
  .sbc-grid { grid-template-columns: 1fr; }
  .sbc-card { flex-direction: column; text-align: center; }
  .sbc-card .sbc-tags { justify-content: center; }
  .calc-grid { grid-template-columns: repeat(4, 1fr); }
  .picker-tools { grid-template-columns: 1fr 1fr; }
  .picker-tools input { grid-column: 1 / -1; }
  .prow .badge, .prow .flag { display: none; }
  .filters { grid-template-columns: 1fr; }
  .hero-cards .fcard.lg { --w: 150px; }
}

/* ================= live-data additions ================= */
.link { color: var(--cyan); }
.link:hover { text-decoration: underline; }
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 60px 20px; color: var(--muted); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--cyan); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#results.busy { opacity: .5; transition: opacity .15s; pointer-events: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 26px 0 8px; }
.pager .btn[disabled] { opacity: .35; pointer-events: none; }
.crest-img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.flag-img { width: 24px; height: 16px; object-fit: contain; flex: none; }
.sales { font-size: 12px; color: var(--muted); white-space: nowrap; min-width: 64px; text-align: right; }
.notice { background: rgba(0, 231, 255, .07); border: 1px solid rgba(0, 231, 255, .25); border-radius: 10px; padding: 9px 14px; margin: -8px 0 16px; font-size: 14px; }
.notice a { color: var(--cyan); }
.traits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.traits .chip { cursor: default; font-weight: 500; }
.price-facts { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.warn-txt { color: var(--orange); }
.problems { margin: 10px 0 0; padding-left: 18px; color: var(--orange); font-size: 13px; }
.sbc-thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex: none; background: var(--brand); display: grid; place-items: center; }
.sbc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sbc-art img { max-width: 100%; max-height: 140px; object-fit: contain; border-radius: 10px; }
.sbc-art.big img { max-height: 240px; }
.slot-brick { width: 70px; height: 112px; border-radius: 12px; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 8px, rgba(255, 255, 255, .08) 8px 16px); border: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); }
.slot-brick small { font-family: var(--cond); font-weight: 700; }
.slot-pos em { font-style: normal; background: var(--orange); color: #1a0d00; border-radius: 4px; font-size: 11px; padding: 0 4px; margin-left: 4px; }
.pk-links { display: flex; gap: 3px; min-width: 40px; justify-content: flex-end; }
.lkdot { width: 9px; height: 9px; border-radius: 50%; display: block; }
.lkdot.l0 { background: var(--red); }
.lkdot.l1 { background: var(--orange); }
.lkdot.l2 { background: var(--green); }
.pk-more { align-self: center; margin: 8px 0; }

/* real player images on the cards */

/* more card types (Aurora rarities) */
.t-hero { --c1: #3b1c7a; --c2: #b28bff; --ink: #fff7d6; }
.t-record { --c1: #101010; --c2: #c9a227; --ink: #fff; }
.t-motm { --c1: #141414; --c2: #d4af37; --ink: #fff3c4; }
.t-futties { --c1: #4c0b5f; --c2: #f15bb5; --ink: #fff; }
.t-potm { --c1: #0d2a6b; --c2: #3ec1ff; --ink: #fff; }
.t-flashback { --c1: #5a3a1c; --c2: #e8b97a; --ink: #241306; }
.t-showdown { --c1: #0b3b2e; --c2: #ff8a00; --ink: #fff; }
.t-moments { --c1: #0e1c4d; --c2: #00e7ff; --ink: #fff; }
.t-reward { --c1: #1d1d3b; --c2: #9aa3ff; --ink: #fff; }
.t-scream { --c1: #160b05; --c2: #ff6a00; --ink: #ffe8cc; }
.t-ballon { --c1: #0c0a05; --c2: #e8c766; --ink: #fff4cf; }
.t-promo { --c1: #1e1060; --c2: #ff2d8d; --ink: #fff; }

/* ================= web app (club, market, packs) ================= */
.link-btn { background: none; border: 0; color: var(--cyan); cursor: pointer; text-decoration: underline; padding: 0; font: inherit; }
.wa-demo { background: linear-gradient(90deg, rgba(255, 174, 61, .14), rgba(255, 45, 141, .1)); border: 1px solid rgba(255, 174, 61, .35); color: #ffd9a3; border-radius: 12px; padding: 10px 16px; font-size: 13.5px; margin-bottom: 16px; }
.wa-top { display: flex; align-items: center; gap: 18px; background: linear-gradient(180deg, rgba(23, 32, 87, .7), rgba(16, 23, 63, .6)); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin-bottom: 22px; position: sticky; top: 64px; z-index: 20; backdrop-filter: blur(10px); }
.wa-who { display: flex; flex-direction: column; line-height: 1.15; min-width: 120px; }
.wa-who b { font-family: var(--cond); font-size: 18px; text-transform: uppercase; }
.wa-who small { color: var(--muted); font-size: 12px; }
.wa-tabs { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.wa-tabs::-webkit-scrollbar { display: none; }
.wa-tabs a { position: relative; padding: 8px 12px; border-radius: 8px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: 15px; color: var(--muted); white-space: nowrap; }
.wa-tabs a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.wa-tabs a.on { color: #04122a; background: var(--cyan); }
.wa-tabs a i { font-style: normal; background: var(--pink); color: #fff; font-family: var(--font); font-size: 10px; border-radius: 8px; padding: 1px 5px; margin-left: 5px; vertical-align: 2px; }
.wa-bal { font-family: var(--cond); font-size: 24px; font-weight: 800; white-space: nowrap; }
.wa-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.wa-filters input, .wa-filters select { width: auto; min-width: 150px; flex: 1 1 150px; }
.wa-filters .btn { flex: none; }
.wa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 12px; }
.wa-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px 10px; border-radius: 14px; cursor: pointer; transition: background .15s; }
.wa-item:hover { background: rgba(0, 231, 255, .06); }
.wa-item.mine { background: rgba(46, 245, 154, .07); box-shadow: inset 0 0 0 1px rgba(46, 245, 154, .35); }
.wa-item.won { box-shadow: inset 0 0 0 1px rgba(46, 245, 154, .5); }
.wa-item.lost { opacity: .6; }
.wa-auc { cursor: default; }
.wa-lock { position: absolute; top: 6px; right: 10px; font-size: 14px; filter: drop-shadow(0 1px 2px #000); }
.wa-meta { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 13px; }
.wa-meta small { color: var(--muted); }
.wa-meta small b { color: var(--text); }
.wa-st { font-family: var(--cond); font-weight: 800; font-size: 14px; text-transform: uppercase; padding: 1px 8px; border-radius: 5px; }
.wa-st.act { background: rgba(0, 231, 255, .12); color: var(--cyan); text-transform: none; }
.wa-st.sold { background: rgba(46, 245, 154, .15); color: var(--green); }
.wa-st.exp { background: rgba(255, 77, 94, .15); color: var(--red); }
.wa-btns { display: flex; gap: 6px; }
.wa-bulk { margin: 0 0 18px; }
.wa-log { list-style: none; margin: 0; padding: 0; }
.wa-log li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.wa-log li:first-child { border-top: 0; }
.wa-modal { max-width: 100%; }
.modal-box:has(.wa-modal) { width: min(760px, 100%); }
.wa-detail { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; overflow-y: auto; }
.wa-list { background: rgba(5, 8, 28, .5); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.wa-list h4 { margin: 0; font-family: var(--cond); text-transform: uppercase; font-size: 16px; }
.wa-list .btn { align-self: flex-start; }
.wa-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.wa-pack { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.wa-pack-art, .pack-big { width: 130px; height: 180px; border-radius: 12px; background: linear-gradient(160deg, var(--p2, #fff1a6), var(--p1, #b88d2f) 60%, #3a2a06); display: grid; place-items: end center; padding: 12px 10px; position: relative; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); transition: transform .2s; }
.wa-pack:hover .wa-pack-art { transform: translateY(-4px) rotate(-2deg); }
.wa-pack-art::before, .pack-big::before { content: 'AURORA'; position: absolute; top: 18px; left: 0; right: 0; font-family: var(--cond); font-weight: 800; letter-spacing: .25em; font-size: 15px; color: rgba(0, 0, 0, .55); }
.wa-pack-art::after, .pack-big::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .12) 0 2px, transparent 2px 11px); }
.wa-pack-art span, .pack-big span { position: relative; z-index: 1; font-family: var(--cond); font-weight: 800; text-transform: uppercase; font-size: 15px; line-height: 1.05; color: #1c1300; }
.look-bronze { --p1: #7a4a2c; --p2: #e2a26a; }
.look-silver { --p1: #7f8a93; --p2: #f4f7f9; }
.look-rare { --p1: #8a6410; --p2: #ffe27a; }
.look-rare .wa-pack-art, .pack-big.look-rare { box-shadow: 0 0 30px rgba(245, 200, 76, .45), 0 12px 30px rgba(0, 0, 0, .45); }
.look-promo { --p1: #2a0861; --p2: #ff2d8d; }
.look-promo span, .look-promo .wa-pack-art::before, .pack-big.look-promo::before { color: #fff !important; }
.wa-reveal-box { width: min(900px, 100%) !important; }
.pack-open { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 26px 20px; overflow: hidden; text-align: center; }
.pack-big { width: 180px; height: 250px; animation: shake 1s ease-in-out infinite; }
.pack-big span { font-size: 20px; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-2deg) scale(1.02); } 75% { transform: rotate(2deg) scale(1.02); } }
.flare { position: absolute; inset: -40%; background: radial-gradient(circle, rgba(0, 231, 255, .35), transparent 55%); animation: flare 1.4s ease-out both; pointer-events: none; }
.flare.board { background: radial-gradient(circle, rgba(123, 92, 255, .5), transparent 55%); }
.flare.walkout { background: conic-gradient(from 0deg, rgba(245, 200, 76, .0), rgba(245, 200, 76, .55), rgba(255, 45, 141, .35), rgba(245, 200, 76, .0), rgba(245, 200, 76, .55)); animation: flare 1.4s ease-out both, spin 6s linear infinite; mask: radial-gradient(circle, #000 20%, transparent 60%); -webkit-mask: radial-gradient(circle, #000 20%, transparent 60%); }
@keyframes flare { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
.pack-open .best { position: relative; animation: rise .9s .3s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.6); } }
/* One side-scrolling strip, both cards sized from the screen height, so the reveal always fits the modal */
.pack-open .rest { position: relative; flex: none; display: flex; justify-content: safe center; gap: 8px; max-width: 100%; padding: 10px 6px; overflow-x: auto; animation: fade .6s 1s both; }
.pack-open .best .fcard { --w: min(220px, 27vh); }
.pack-open .rest .fcard { --w: min(104px, 12vh); }
.pack-open .kicker { position: relative; margin: 0; }
.pack-open .btn-row { position: relative; justify-content: center; }
@media (max-width: 900px) {
  .wa-top { flex-wrap: wrap; position: static; }
  .wa-tabs { order: 3; flex-basis: 100%; }
  .wa-detail { grid-template-columns: 1fr; justify-items: center; }
}
@media (max-width: 640px) { .wa-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); } .wa-grid .fcard { --w: 118px; } }
.tile b em { font-style: normal; font-size: 20px; }
/* ================= card v2: FUT-era shield shape (original drawing) ================= */

/* ================= FIFA 21 palette (aqua + purple, from the Web-FIFA-21 project) ================= */
:root { --cyan: #1ff2d6; --violet: #7e41f4; --brand: linear-gradient(90deg, #1ff2d6, #7e41f4 52%, #ff2d8d); }
body {
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(126, 65, 244, .30), transparent 60%),
    radial-gradient(900px 520px at -5% 5%, rgba(31, 242, 214, .13), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(255, 45, 141, .10), transparent 60%),
    #080722;
  background-attachment: fixed;
}
.top { background: rgba(14, 8, 44, .85); }
.nav a.active { background: rgba(126, 65, 244, .22); box-shadow: inset 0 -2px 0 var(--cyan); }
.chips button.on, .wa-tabs a.on { background: var(--cyan); color: #120a2e; border-color: var(--cyan); }

/* ================= database page ================= */
.db-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.db-head .btn-row { margin: 0; }
.db-tools { display: flex; gap: 10px; margin-bottom: 14px; }
.db-tools input { max-width: 320px; }
.db-table th.sortable { cursor: pointer; user-select: none; }
.db-table th.sortable:hover { color: var(--text); }
.db-table th.asc::after { content: ' ▲'; color: var(--cyan); }
.db-table th.desc::after { content: ' ▼'; color: var(--cyan); }
.db-table td { white-space: normal; }
.db-table .chip { cursor: default; font-size: 11.5px; padding: 2px 8px; margin: 1px 0; display: inline-block; }
.db-act { text-align: right; width: 1%; }
.db-club { display: inline-flex; align-items: center; gap: 8px; }
.cap { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; width: 100%; }
.cap-bar { display: block; height: 6px; max-width: 160px; flex: none; border-radius: 3px; background: var(--brand); }
.cap b { min-width: 56px; }
.db-comps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.db-comps .panel { margin: 0; }
.db-crests { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; }
.db-form { gap: 12px; }
.db-json { width: 100%; min-height: 320px; background: rgba(3, 5, 20, .8); color: #c7d0ff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: 12.5px/1.5 ui-monospace, Consolas, monospace; }
.link-grid { border-collapse: separate; border-spacing: 3px; margin: 0 auto; font-family: var(--cond); }
.link-grid th { font-size: 12px; color: var(--muted); padding: 2px 6px; text-align: right; white-space: nowrap; }
.link-grid thead th { text-align: center; }
.link-grid td { width: 30px; height: 26px; border-radius: 5px; }
.link-grid td.l0 { background: rgba(255, 77, 94, .55); }
.link-grid td.l1 { background: rgba(255, 174, 61, .75); }
.link-grid td.l2 { background: rgba(46, 245, 154, .8); }
.link-grid td.self { background: rgba(255, 255, 255, .05); }
.cap-track { width: 160px; height: 6px; background: rgba(255, 255, 255, .07); border-radius: 3px; overflow: hidden; flex: none; } .cap-track .cap-bar { height: 100%; max-width: none; }

/* ================= Web App shell (My Club) ================= */
body.wa-app .top, body.wa-app .foot, body.wa-app .sample-bar { display: none; }
body.wa-app main.wrap { max-width: none; padding: 0; }
body.wa-app { background: #121218; }
.wa-app-shell { display: grid; grid-template-columns: 104px 1fr; min-height: 100vh; }
.wa-side { position: sticky; top: 0; height: 100vh; background: #1a1a20; display: flex; flex-direction: column; border-right: 1px solid rgba(255, 255, 255, .05); z-index: 5; }
.wa-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0 14px; font-family: var(--cond); font-weight: 700; font-size: 12px; letter-spacing: .08em; color: #e8e6ff; }
.wa-brand:hover { color: var(--cyan); }
.wa-mark { width: 34px; height: 40px; }
.wa-side nav { display: flex; flex-direction: column; flex: 1; }
.wa-side nav a, .wa-out { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 4px; font-family: var(--cond); font-weight: 600; font-size: 16px; text-transform: uppercase; color: #e8e6ff; }
.wa-side svg { width: 26px; height: 26px; }
.wa-side nav a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.wa-side nav a.on { background: #24242c; color: var(--cyan); box-shadow: inset -4px 0 0 var(--pink); }
.wa-side nav a.on span::after { content: ''; display: block; height: 4px; width: 28px; margin: 4px auto 0; border-radius: 2px; background: var(--cyan); }
.wa-dot { position: absolute; top: 12px; right: 26px; width: 9px; height: 9px; border-radius: 50%; background: #ffc928; }
.wa-out { margin-top: auto; padding-bottom: 18px; }
.wa-out:hover { color: var(--cyan); }
.wa-main { position: relative; min-width: 0; overflow: hidden; }
.wa-main::before, .wa-main::after { content: ''; position: absolute; pointer-events: none; z-index: 0; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 300' preserveAspectRatio='none'><defs><linearGradient id='a' x1='0' x2='1'><stop offset='0' stop-color='%23ff2d8d'/><stop offset='.45' stop-color='%237e41f4'/><stop offset='1' stop-color='%231ff2d6'/></linearGradient><linearGradient id='b' x1='0' x2='1'><stop offset='0' stop-color='%23ffb02e'/><stop offset='1' stop-color='%23ff2d8d'/></linearGradient></defs><g fill='none' stroke-linecap='round'><path d='M-20 250C150 140 320 300 520 170S760 60 840 90' stroke='url(%23a)' stroke-width='38' opacity='.85'/><path d='M-20 285C180 190 330 300 540 215S770 120 840 140' stroke='url(%23b)' stroke-width='14' opacity='.8'/><path d='M0 220C210 120 360 260 560 140S780 40 820 50' stroke='%23fff' stroke-width='2.5' opacity='.7'/><path d='M40 290C240 200 420 290 640 190' stroke='%231ff2d6' stroke-width='3' opacity='.6'/></g></svg>") center / 100% 100% no-repeat; }
.wa-main::before { right: -6%; top: 40px; width: 52%; height: 170px; transform: scaleY(-1) rotate(4deg); opacity: .9; }
.wa-main::after { left: -4%; bottom: -10px; width: 62%; height: 230px; opacity: .95; }
.wa-bar { position: relative; z-index: 3; display: flex; align-items: center; gap: 22px; height: 76px; padding: 0 0 0 28px; background: #1c1b22; }
.wa-bar h1 { flex: 1; margin: 0; font-family: var(--cond); font-weight: 500; font-size: 46px; letter-spacing: .01em; color: #fff; text-transform: uppercase; }
.wa-mode { font-family: var(--cond); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; padding: 3px 12px; border: 1.5px solid var(--cyan); color: var(--cyan); }
.wa-mode.demo { border-color: #ffc928; color: #ffc928; }
.wa-money { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--cond); font-size: 19px; font-weight: 500; line-height: 1.15; }
.wa-money .coin { width: .8em; height: .8em; margin: 0 0 0 4px; }
.pts { display: inline-block; width: .7em; height: .7em; border: 2px solid #2ef59a; transform: rotate(45deg); margin-left: 6px; vertical-align: .05em; }
.wa-bar .wa-who { display: flex; flex-direction: column; align-items: flex-end; padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, .1); border-right: 1px solid rgba(255, 255, 255, .1); height: 100%; justify-content: center; font-family: var(--cond); }
.wa-bar .wa-who b { font-size: 17px; font-weight: 600; text-transform: uppercase; }
.wa-bar .wa-who small { font-size: 15px; color: #c9c7e8; }
.wa-bar-mark { width: 36px; height: 42px; margin-right: 18px; }
.wa-crumbs { position: relative; z-index: 2; display: flex; gap: 8px; padding: 14px 40px 0; font-size: 13px; color: var(--muted); }
.wa-crumbs a { color: var(--cyan); }
.wa-body { position: relative; z-index: 2; padding: 40px 40px 120px; max-width: 1180px; margin: 0 auto; }
.wa-demo-note { position: relative; z-index: 2; text-align: center; color: #c9c7e8; font-size: 12.5px; padding: 0 20px 26px; margin: 0; }

/* tiles */
.wa-hub { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wa-hub.club { grid-template-columns: 1fr 1fr 1fr; }
.wa-hub.club .wa-tile.wide { grid-column: span 2; }
.wa-tile { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 14px 12px 12px; color: #fff; overflow: hidden;
  background: repeating-linear-gradient(118deg, rgba(126, 65, 244, .06) 0 18px, transparent 18px 46px), #1d1a4e; border: 1px solid rgba(110, 130, 255, .28); transition: border-color .15s, transform .15s; }
a.wa-tile:hover { border-color: var(--cyan); color: #fff; transform: translateY(-2px); }
.wa-tile.wide { grid-column: 1 / -1; min-height: 0; }
.wa-tile.tall { min-height: 330px; }
.wa-tile h2 { margin: 0 0 8px; font-family: var(--cond); font-style: italic; font-weight: 700; font-size: 44px; line-height: 1; text-transform: uppercase; color: #5fd6ff; letter-spacing: .005em; }
.wa-tile-body { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; }
.wa-tile-foot { text-align: center; font-weight: 600; font-size: 17px; line-height: 1.35; padding: 8px 10px 4px; color: #f2f1ff; }
.wa-tile.static { cursor: default; }
.muted-tile { background: repeating-linear-gradient(118deg, rgba(255, 255, 255, .02) 0 18px, transparent 18px 46px), #23223a; }
.muted-tile h2 { color: #c2c0dd; }
.wa-line { display: flex; align-items: center; gap: 30px; width: 100%; padding: 6px 10px 10px; }
.wa-big { font-family: var(--cond); font-size: 48px; font-weight: 500; line-height: 1; }
.wa-line span { font-size: 19px; font-weight: 600; }
.wa-split { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 10px; gap: 10px; }
.wa-sub { display: block; font-family: var(--cond); font-weight: 500; font-size: 38px; letter-spacing: .02em; }
.wa-gold { font-family: var(--cond); color: #ffc928; font-size: 19px; letter-spacing: .03em; }
.wa-art { width: 150px; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.wa-art.sm { width: 110px; }
.wa-fan { position: relative; height: 270px; width: 100%; }
.wa-fan .fcard { position: absolute; left: 50%; top: 50%; }
.wa-fan .f0 { transform: translate(-50%, -50%) scale(1.1); z-index: 3; }
.wa-fan .f1 { transform: translate(-128%, -46%) rotate(-7deg) scale(.88); z-index: 2; }
.wa-fan .f2 { transform: translate(28%, -46%) rotate(7deg) scale(.88); z-index: 1; }
.wa-fan .fcard.md { --w: 140px; }
.wa-count { display: flex; align-items: center; width: 100%; background: rgba(255, 255, 255, .07); margin: 4px 0 24px; align-self: flex-start; }
.wa-count-n { display: flex; flex-direction: column; align-items: center; padding: 8px 18px; border-right: 1px solid rgba(255, 255, 255, .2); font-family: var(--cond); }
.wa-count-n b { font-size: 40px; font-weight: 500; line-height: 1; }
.wa-count-n small { font-size: 16px; letter-spacing: .12em; color: #c9c7e8; }
.wa-count dl { flex: 1; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; margin: 0; padding: 8px 14px; font-family: var(--cond); font-size: 18px; }
.wa-count dd { margin: 0; text-align: right; }
.wa-tile .wa-count + .wa-art { margin: 0 auto; }
.wa-tile-body:has(.wa-count) { flex-direction: column; justify-content: flex-start; }
.wa-items { display: inline-flex; align-items: center; gap: 6px; font-family: var(--cond); font-size: 18px; }
.wa-items i { width: 10px; height: 14px; background: #9b98c9; border-radius: 2px; }
.wa-hub.club .wa-tile-foot { text-align: left; }
.wa-hub.club .muted-tile .wa-tile-foot { font-size: 15px; text-align: center; }

/* active squad preview */
.wa-mini-pitch { position: relative; height: 250px; margin: 0 -12px; background: repeating-linear-gradient(90deg, #2c8a2e 0 9%, #32952f 9% 18%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); overflow: hidden; }
.wa-mini-pitch::before { content: ''; position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 50%; transform: translate(-50%, -50%); }
.wa-mp { position: absolute; transform: translate(-50%, -50%); }
.wa-mp .fcard.mini { --w: 44px; }
.wa-mp-empty { display: grid; place-items: center; width: 44px; height: 62px; border-radius: 6px; background: rgba(0, 0, 0, .25); color: #e8e6ff; font-style: normal; font-family: var(--cond); font-size: 12px; }
.wa-squad-meta { display: grid; grid-template-columns: auto auto 1fr; gap: 30px; align-items: center; padding: 12px 10px 4px; font-family: var(--cond); }
.wa-squad-meta small { color: #c9c7e8; font-size: 15px; margin-right: 8px; }
.wa-squad-meta b { font-size: 24px; font-weight: 500; }
.wa-squad-meta > div:first-child b { display: block; color: #5fd6ff; font-size: 22px; }
.wa-squad-meta > div:first-child small { font-size: 19px; color: #fff; }
.wa-stars i { font-style: normal; color: #55536f; font-size: 20px; margin-right: 1px; }
.wa-stars i.on { color: #ffc928; }
.wa-stars i.half { background: linear-gradient(90deg, #ffc928 50%, #55536f 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wa-chem { display: flex; align-items: center; gap: 10px; }
.wa-chem-bar { flex: 1; height: 14px; background: #393760; border-radius: 3px; overflow: hidden; min-width: 120px; }
.wa-chem-bar span { display: block; height: 100%; background: #4fd0ff; }

/* SBC list */
.wa-subtabs { display: flex; flex-wrap: wrap; justify-content: center; background: #1d1a4e; margin: -10px auto 26px; max-width: max-content; }
.wa-subtabs a { padding: 16px 22px; font-family: var(--cond); font-size: 21px; color: #fff; border-bottom: 4px solid transparent; }
.wa-subtabs a.on { color: var(--cyan); border-bottom-color: var(--pink); background: rgba(0, 0, 0, .15); }
.wa-sbc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wa-sbc { position: relative; display: flex; flex-direction: column; background: #1d1a4e; border: 1px solid rgba(110, 130, 255, .28); }
.wa-sbc-main { display: flex; gap: 14px; padding: 14px 16px 14px 18px; color: #fff; flex: 1; }
.wa-sbc-main:hover { color: #fff; background: rgba(255, 255, 255, .03); }
.wa-sbc-art { width: 56px; flex: none; display: grid; place-items: center; }
.wa-sbc-art img { width: 56px; height: auto; }
.wa-sbc-txt { flex: 1; min-width: 0; }
.wa-sbc-txt h3 { margin: 0 0 4px; font-family: var(--cond); font-style: italic; font-weight: 700; font-size: 36px; line-height: 1; color: #5fd6ff; text-transform: uppercase; padding-right: 26px; }
.wa-sbc-txt small { color: #c9c7e8; font-size: 13px; }
.wa-sbc-txt p { margin: 6px 0 8px; font-size: 15px; font-weight: 500; }
.wa-progress { position: relative; display: block; height: 20px; background: #393760; border-radius: 10px; overflow: hidden; }
.wa-progress span { display: block; height: 100%; background: linear-gradient(90deg, #4fd0ff, var(--cyan)); }
.wa-progress em { position: absolute; left: 10px; top: 0; font-style: normal; font-family: var(--cond); font-size: 13px; line-height: 20px; font-weight: 600; }
.wa-fav { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: #8f8db0; font-size: 22px; cursor: pointer; }
.wa-fav.on { color: #ffc928; }
.wa-sbc-rew { background: #39306f; padding: 8px 16px 10px; font-family: var(--cond); font-size: 16px; text-transform: uppercase; }
.wa-sbc-rew small { display: block; color: #c9c7e8; font-size: 13px; letter-spacing: .05em; }

/* Team of the Week */
.wa-totw { display: grid; grid-template-columns: 1fr 380px; background: #15151c; border: 1px solid rgba(255, 255, 255, .08); }
.wa-totw-pitch { position: relative; min-width: 0; }
.wa-totw-head { display: flex; gap: 46px; padding: 10px 30px 12px 160px; background: linear-gradient(90deg, #232232, #1b1a40 30%, #1b1a40 70%, #232232); font-family: var(--cond); }
.wa-totw-head small { display: block; color: #c9c7e8; font-size: 14px; letter-spacing: .04em; }
.wa-totw-head b { font-size: 22px; font-weight: 500; }
.wa-totw-head .wa-chem { flex: 1; flex-wrap: wrap; gap: 4px 12px; }
.wa-totw-head .wa-chem small { flex-basis: 100%; }
.pitch.wa-green { max-width: none; border-radius: 0; border: 0; aspect-ratio: 10 / 11.5;
  background: repeating-linear-gradient(0deg, #2e8b2c 0 7.14%, #339830 7.14% 14.28%); box-shadow: inset 0 0 120px rgba(0, 0, 0, .35); }
.pitch.wa-green .marks { stroke: rgba(255, 255, 255, .4); }
.pitch.wa-green .slot .fcard.mini { --w: 66px; }
.wa-pill { background: #3a3a48 !important; color: #fff !important; padding: 2px 12px !important; border-radius: 14px !important; font-size: 14px !important; }
.wa-pill b { color: var(--cyan); margin-left: 4px; }
.wa-totw-list { max-height: 900px; overflow-y: auto; background: #131226; }
.wa-totw-list h2 { margin: 0; padding: 18px 16px; font-family: var(--cond); font-weight: 500; font-size: 34px; text-transform: uppercase; background: #191838; }
.wa-totw-list a { position: relative; display: block; padding: 14px 18px 12px; border-top: 1px solid rgba(255, 255, 255, .07); background: #171640; color: #fff; }
.wa-totw-list a.on, .wa-totw-list a:hover { background: #2a2766; color: #fff; }
.wa-totw-list a::after { content: '›'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 34px; color: #5fd6ff; }
.wa-totw-list em { position: absolute; top: 0; right: 0; background: #4fd0ff; color: #0e1240; font-style: normal; font-family: var(--cond); font-size: 12px; letter-spacing: .1em; padding: 1px 12px; }
.wa-totw-list b { display: block; font-family: var(--cond); font-weight: 500; font-size: 25px; color: #5fd6ff; }
.wa-totw-list a > span { display: grid; grid-template-columns: 90px 1fr; font-family: var(--cond); align-items: center; }
.wa-totw-list small { color: #c9c7e8; font-size: 13px; }
.wa-totw-list i { font-style: normal; font-size: 19px; }

/* login */
.wa-login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; max-width: 1340px; margin: 0 auto; padding: 10vh 40px; align-items: stretch; }
.wa-login-art { position: relative; background: linear-gradient(135deg, #4b2bb5, #7e41f4 55%, #c03cd8); min-height: 460px; overflow: hidden; }
.wa-login-art .fcard { position: absolute; left: 50%; top: 52%; }
.wa-login-art .wl0 { transform: translate(-50%, -50%) scale(1.15); z-index: 3; }
.wa-login-art .wl1 { transform: translate(-125%, -44%) rotate(-8deg); z-index: 2; }
.wa-login-art .wl2 { transform: translate(25%, -44%) rotate(8deg); z-index: 1; }
.wa-login-form { background: #141419; border: 1px solid rgba(31, 242, 214, .25); border-left: 0; display: flex; flex-direction: column; justify-content: center; padding: 50px 60px; gap: 18px; }
.wa-login-brand { display: flex; align-items: center; gap: 18px; font-family: var(--cond); }
.wa-login-brand b { display: block; font-size: 40px; font-weight: 500; }
.wa-login-brand small { color: #5fd6ff; letter-spacing: .2em; font-size: 16px; }
.wa-login-mark { width: 70px; height: 80px; }
.wa-login-btn { border-radius: 0; background: #7e41f4; box-shadow: none; font-family: var(--cond); font-size: 22px; color: #5fffe4; padding: 12px; }

@media (max-width: 900px) {
  .wa-app-shell { grid-template-columns: 1fr; }
  .wa-side { position: sticky; top: 0; height: auto; flex-direction: row; z-index: 30; overflow-x: auto; }
  .wa-side nav { flex-direction: row; }
  .wa-side nav a, .wa-out { padding: 8px 10px; font-size: 13px; }
  .wa-side nav a.on { box-shadow: inset 0 -3px 0 var(--pink); }
  .wa-brand { padding: 6px 10px; }
  .wa-out { margin: 0 0 0 auto; }
  .wa-bar { height: auto; flex-wrap: wrap; gap: 8px 16px; padding: 10px 14px; }
  .wa-bar h1 { font-size: 30px; flex-basis: 100%; }
  .wa-bar .wa-who, .wa-bar-mark { display: none; }
  .wa-body { padding: 20px 14px 140px; }
  .wa-hub, .wa-hub.club, .wa-sbc-grid, .wa-totw, .wa-login { grid-template-columns: 1fr; }
  .wa-hub.club .wa-tile.wide { grid-column: auto; }
  .wa-tile h2, .wa-sbc-txt h3 { font-size: 32px; }
  .wa-totw-head { padding-left: 16px; gap: 20px; flex-wrap: wrap; }
  .pitch.wa-green .slot .fcard.mini { --w: 47px; }
  .wa-login-form { border-left: 1px solid rgba(31, 242, 214, .25); }
}

/* ================= card v3: per-type designs (original artwork) ================= */
.t-bronze { --c1: #6e3f1f; --c2: #e0a473; --c3: #3d2210; --ink: #2a1306; }
.t-bronze-rare { --c1: #8f5226; --c2: #f3b67d; --c3: #4a2610; --ink: #2a1306; }
.t-silver { --c1: #7c8791; --c2: #eef2f5; --c3: #4b545b; --ink: #1c2328; }
.t-silver-rare { --c1: #8e9aa4; --c2: #ffffff; --c3: #56606a; --ink: #1c2328; }
.t-gold { --c1: #a8791f; --c2: #f6dd8d; --c3: #6b4a0c; --ink: #2b1f05; }
.t-gold-rare { --c1: #c48f12; --c2: #fff2a8; --c3: #7a5508; --ink: #2a1c00; }
.t-totw { --c1: #0d0d0f; --c2: #3a352a; --c3: #000000; --ink: #f3d27a; }
.t-toty { --c1: #061056; --c2: #2c5cf0; --c3: #020833; --ink: #f8d77e; }
.t-tots { --c1: #0a4fa8; --c2: #74d6ff; --c3: #06306b; --ink: #fff5c9; }
.t-fs { --c1: #062a3a; --c2: #19c48a; --c3: #0a1430; --ink: #effff8; }
.t-fb { --c1: #ff2f9b; --c2: #ffd23f; --c3: #a0105a; --ink: #2a0019; }
.t-headliners { --c1: #121212; --c2: #ff6a00; --c3: #000000; --ink: #ffffff; }
.t-otw { --c1: #24075a; --c2: #ff2d8d; --c3: #12022e; --ink: #ffffff; }
.t-rb { --c1: #4d000d; --c2: #ff3344; --c3: #2a0007; --ink: #ffffff; }
.t-freeze { --c1: #3d98ff; --c2: #e9f8ff; --c3: #1a5fb0; --ink: #062033; }
.t-icon { --c1: #cbb88a; --c2: #fffdf4; --c3: #8a7140; --ink: #3a2a06; }
.t-sbc { --c1: #064d3e; --c2: #2de0b0; --c3: #02261e; --ink: #f2fffb; }
.t-hero { --c1: #2b1466; --c2: #b28bff; --c3: #150836; --ink: #fff7d6; }
.t-record { --c1: #0b0b0b; --c2: #c9a227; --c3: #000000; --ink: #fff4cf; }
.t-motm { --c1: #141414; --c2: #d4af37; --c3: #000000; --ink: #fff3c4; }
.t-futties { --c1: #3e0a52; --c2: #f15bb5; --c3: #1e0329; --ink: #ffffff; }
.t-potm { --c1: #0d2a6b; --c2: #3ec1ff; --c3: #061638; --ink: #ffffff; }
.t-flashback { --c1: #5a3a1c; --c2: #e8b97a; --c3: #2e1c0b; --ink: #241306; }
.t-showdown { --c1: #0b3b2e; --c2: #ff8a00; --c3: #04140f; --ink: #ffffff; }
.t-moments { --c1: #0e1c4d; --c2: #00e7ff; --c3: #050c24; --ink: #ffffff; }
.t-reward { --c1: #1d1d3b; --c2: #9aa3ff; --c3: #0d0d20; --ink: #ffffff; }
.t-scream { --c1: #160b05; --c2: #ff6a00; --c3: #000000; --ink: #ffe8cc; }
.t-ballon { --c1: #0c0a05; --c2: #e8c766; --c3: #000000; --ink: #fff4cf; }
.t-promo { --c1: #1e1060; --c2: #ff2d8d; --c3: #0c0730; --ink: #ffffff; }


/* club-only: site pages inside the app frame */
.wa-site-page .page-head > h1, .wa-site-page .page-head > div > h1 { display: none; }
.wa-site-page .crumbs { display: none; }
.wa-site-page { max-width: 1280px; }
.wa-site-page .filters, .wa-site-page .sq-side, .wa-site-page .pp-side { top: 20px; }
.wa-site-page .pp-title h1 { display: none; }
