/* Cardcard official site. Tokens follow the in-game v2 UI kit (design/lib/ui-v2-kit.js). */
:root {
  --bg: #0A0B10; --s1: #14151C; --s2: #1C1D25; --s3: #26272F; --line: rgba(255,255,255,.08);
  --fg: #ECEDF3; --fg2: #A7AAB8; --fg3: #6E7183;
  --brand: #8B6CFF; --gold: #E9C46A; --holo: #5FE3FF;
  --C: #9AA3B5; --R: #3FB6FF; --SR: #A779FF; --SSR: #F5B93B; --UR: #FF4F8B;
  --head: "Unbounded", var(--body);
  --body: "Outfit", "Noto Sans SC", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --r: 16px; --wrap: 1120px;
  color-scheme: dark;
}
:lang(zh) { --body: "Outfit", "Noto Sans SC", -apple-system, "PingFang SC", sans-serif; }
:lang(ja) { --body: "Outfit", "Noto Sans JP", -apple-system, "Hiragino Sans", sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.65 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, .prose a { color: var(--holo); text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { font-family: var(--body); font-weight: 800; letter-spacing: 0; }
h1 { font-size: clamp(32px, 6vw, 60px); }
h2 { font-size: clamp(24px, 3.6vw, 36px); }
h3 { font-size: 19px; }
.eyebrow { font: 600 12px/1 var(--body); letter-spacing: .08em; color: var(--gold); margin-bottom: 14px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--fg2); max-width: 640px; }
.muted { color: var(--fg2); }
.small { font-size: 14px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10,11,16,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 17px var(--head); letter-spacing: .02em; flex: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 7px 11px; border-radius: 999px; color: var(--fg2); font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--fg); background: var(--s2); }
.nav a.on { color: var(--fg); background: var(--s3); }
.langs { display: flex; gap: 2px; flex: none; background: var(--s1); border-radius: 999px; padding: 3px; }
.langs a { padding: 4px 10px; border-radius: 999px; font-size: 13px; color: var(--fg2); }
.langs a.on { background: var(--s3); color: var(--fg); }
@media (max-width: 760px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; gap: 8px 12px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -16px; padding: 0 12px; }
  .logo { flex: 1; }
}

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: .45; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(10,11,16,.82) 45%, rgba(10,11,16,.25) 100%), linear-gradient(0deg, var(--bg), rgba(10,11,16,0) 40%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; min-height: 600px; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { margin-bottom: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; background: var(--s2); border: 1px solid var(--line); }
.btn:hover { background: var(--s3); }
.btn.pri { background: linear-gradient(180deg, #A089FF, var(--brand)); border-color: transparent; color: #fff; box-shadow: 0 8px 30px rgba(139,108,255,.35); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); color: var(--fg2); }
.stage { position: relative; height: 520px; }
.stage .card { position: absolute; width: 230px; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.stage .c1 { left: 6%; top: 60px; transform: rotate(-11deg); }
.stage .c2 { left: 31%; top: 18px; z-index: 2; transform: rotate(1deg); }
.stage .c3 { left: 56%; top: 70px; transform: rotate(12deg); }
.stage .pet { position: absolute; z-index: 3; width: 170px; left: 0; bottom: 0; filter: drop-shadow(0 12px 18px rgba(0,0,0,.6)); }
.stage .avatar { position: absolute; z-index: 3; height: 330px; right: 0; bottom: -10px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.6)); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .stage { height: 400px; max-width: 460px; width: 100%; margin: 0 auto; }
  .stage .card { width: 44%; }
  .stage .avatar { height: 250px; }
  .stage .pet { width: 120px; }
}

/* sections */
section.band { padding: 80px 0; border-bottom: 1px solid var(--line); }
section.band.alt { background: linear-gradient(180deg, var(--s1), var(--bg)); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.head .lead { margin-top: 12px; }
.more { color: var(--holo); font-weight: 600; white-space: nowrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.g5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .g5 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.g6p { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1000px) { .g6p { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .g6p { grid-template-columns: repeat(2, 1fr); } }
.g6 { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 420px) { .g2, .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: 1fr 1fr; } .g5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .g5 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.g6p { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1000px) { .g6p { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .g6p { grid-template-columns: repeat(2, 1fr); } }
.g6 { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: border-color .15s, transform .15s; }
a.tile:hover { border-color: rgba(255,255,255,.2); transform: translateY(-2px); }
.tile h3 { margin-bottom: 8px; }
.tile p { margin: 0; color: var(--fg2); font-size: 15px; }
.feat .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; background: var(--s3); }
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(80% 120% at 0% 0%, rgba(139,108,255,.18), rgba(10,11,16,0) 60%); }
.page-head .lead { margin-top: 14px; }
.prose { max-width: 760px; }
.prose h2 { margin: 48px 0 14px; font-size: 26px; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: #D6D8E2; }
.prose blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); color: var(--fg); font-size: 19px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 28px 0; }
.fact { background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.fact b { display: block; font: 700 24px var(--head); }
.fact span { color: var(--fg2); font-size: 14px; }
table.kv { border-collapse: collapse; width: 100%; font-size: 15px; }
table.kv th, table.kv td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.kv th { color: var(--fg2); font-weight: 500; width: 38%; padding-right: 12px; }

/* clubs */
.crest-strip { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; }
@media (max-width: 760px) { .crest-strip { grid-template-columns: repeat(5, 1fr); } }
.crest-strip a { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 10px; aspect-ratio: 1; display: grid; place-items: center; }
.crest-strip a:hover { border-color: rgba(255,255,255,.22); }
.crest-strip img { max-height: 100%; object-fit: contain; }
.club { display: flex; gap: 16px; align-items: flex-start; position: relative; overflow: hidden; }
.club::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c1); }
.club img { width: 64px; height: 72px; object-fit: contain; flex: none; }
.club .meta { font-size: 13px; color: var(--fg3); margin-bottom: 4px; }
.club i { font-style: normal; color: var(--fg2); font-size: 14px; display: block; margin-top: 6px; }
.region { margin: 44px 0 16px; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg3); font-family: var(--body); font-weight: 600; }
.club-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(90% 140% at 0% 0%, var(--glow), rgba(10,11,16,0) 65%); }
.club-hero .wrap { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; }
.club-hero img.big { width: 220px; height: 250px; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
@media (max-width: 700px) { .club-hero .wrap { grid-template-columns: 1fr; } .club-hero img.big { width: 150px; height: 170px; } }
.swatches { display: flex; gap: 8px; margin-top: 18px; }
.swatches span { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); }

/* athletes */
.ath { display: flex; gap: 14px; align-items: center; padding: 16px; }
.ath .hd { width: 64px; height: 64px; border-radius: 50%; background: var(--s3); flex: none; overflow: hidden; }
.ath .nm { font-weight: 700; line-height: 1.25; }
.ath .sub { font-size: 13px; color: var(--fg2); display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.ath .sub img { width: 16px; height: 18px; object-fit: contain; }
.rc { font: 700 10px/1 var(--body); color: #0A0B10; background: var(--gold); padding: 3px 5px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filters button { font: inherit; font-size: 14px; color: var(--fg2); background: var(--s1); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.filters button.on { color: var(--fg); background: var(--s3); border-color: rgba(255,255,255,.2); }
.ath-hero { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; padding: 56px 0; }
@media (max-width: 800px) { .ath-hero { grid-template-columns: 1fr; } }
.ath-hero .card { border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.cardfig { margin: 0; }
.cardfig img { border-radius: 10px; box-shadow: 0 10px 26px rgba(0,0,0,.5); aspect-ratio: 2/3; object-fit: cover; width: 100%; background: var(--s2); }
.cardfig figcaption { font-size: 13px; color: var(--fg2); margin-top: 8px; line-height: 1.35; }
.tier { display: inline-block; font: 700 11px/1 var(--body); padding: 3px 6px; border-radius: 4px; color: #0A0B10; margin-right: 6px; vertical-align: 1px; }
.t-C { background: var(--C); } .t-R { background: var(--R); } .t-SR { background: var(--SR); } .t-SSR { background: var(--SSR); } .t-UR { background: var(--UR); }

/* sports */
.sport .tag { font-size: 12px; color: var(--fg3); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.sport .em { font-size: 30px; margin-bottom: 10px; }

/* pets */
.pet { text-align: center; padding: 18px 16px 20px; position: relative; overflow: hidden; }
.pet::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 55% at 50% 38%, var(--el), rgba(0,0,0,0) 70%); opacity: .22; }
.pet > * { position: relative; }
.pet img { height: 150px; width: auto; margin: 0 auto 10px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0,0,0,.5)); }
.pet h3 { font-size: 17px; }
.pet .kana { font-size: 12px; color: var(--fg3); }
.pet .row { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 8px 0 10px; flex-wrap: wrap; }
.el { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--el) 22%, transparent); color: var(--el); border: 1px solid color-mix(in srgb, var(--el) 45%, transparent); }
.pet p { font-size: 14px; }
.line { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; }
.line .arrow { color: var(--fg3); font-size: 20px; }
@media (max-width: 760px) { .line { grid-template-columns: 1fr; } .line .arrow { transform: rotate(90deg); justify-self: center; } }
.elements { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.elements .tile { padding: 16px; }
.elements b { color: var(--el); }

/* cards page */
.lines .tile { padding: 0; overflow: hidden; }
.lines .tile .body { padding: 20px; }
.lines .tile .pic { aspect-ratio: 16/10; background: var(--s2); display: flex; justify-content: center; align-items: flex-end; gap: 8px; padding: 18px 18px 0; overflow: hidden; }
.lines .tile .pic img { width: 30%; border-radius: 8px 8px 0 0; box-shadow: 0 8px 20px rgba(0,0,0,.5); }
.ladder { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }

/* news */
.news { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; padding: 0; overflow: hidden; }
.news .pic { height: 100%; min-height: 130px; background: var(--s2) center/cover; }
.news .body { padding: 18px 20px 18px 0; }
.news time { font-size: 13px; color: var(--fg3); }
.news h3 { margin: 4px 0 6px; }
@media (max-width: 600px) { .news { grid-template-columns: 1fr; } .news .pic { min-height: 160px; } .news .body { padding: 0 18px 18px; } }
.article-cover { border-radius: var(--r); margin: 28px 0 8px; max-height: 420px; width: 100%; object-fit: cover; }

/* footer */
footer.site { padding: 48px 0 64px; color: var(--fg3); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer.site a:hover { color: var(--fg); }
