/* tadclip V2 - Arnas's world (blue field, grey panels, wide type, pills) carrying Fastwork's marketplace structure */

@font-face { font-family: "Inter Tight"; src: url("../fonts/intertight-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Archivo Expanded"; src: url("../fonts/archivo-expanded-var.woff2") format("woff2"); font-weight: 300 500; font-display: swap; }
@font-face { font-family: "Noto Sans Thai"; src: url("../fonts/notosansthai-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --blue: #0a00ed;
  --blue-ink: #08008f;
  --grey: #e4e3e4;
  --card: #f6f6f7;
  --ink: #0b0b10;
  --ink-soft: #34343f;
  --mute: #5d5c6b;
  --on-blue: #e5e4e4;
  --on-blue-soft: rgba(229, 228, 228, 0.84);
  --on-blue-line: rgba(229, 228, 228, 0.32);
  --line-blue: rgba(10, 0, 237, 0.32);
  --line: rgba(11, 11, 16, 0.12);
  --red: #ee3d23;
  --dim: #030046;

  --sans: "Inter Tight", "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;
  --wide: "Archivo Expanded", "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(12px, 2.4vw, 44px);
  --radius: clamp(18px, 1.6vw, 30px);
  --r-tile: clamp(12px, 1.1vw, 18px);
  --pad: clamp(22px, 3.6vw, 64px);
  --nav-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; scrollbar-color: rgba(229, 228, 228, 0.55) var(--blue); }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--blue);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--blue);
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--blue); }
::-webkit-scrollbar-thumb { background: rgba(229, 228, 228, 0.5); border-radius: 10px; border: 3px solid var(--blue); }
::selection { background: var(--blue); color: var(--grey); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
svg { display: block; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.cover :focus-visible, .cats :focus-visible, .nav :focus-visible, .creators :focus-visible, .end :focus-visible { outline-color: var(--on-blue); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.num { font-family: var(--wide); font-variant-numeric: tabular-nums; font-weight: 350; letter-spacing: -0.02em; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  height: 2.15em; padding: 0 1.05em; border-radius: 999px;
  border: 1px solid currentColor; color: var(--blue);
  font-size: 13px; font-weight: 400; line-height: 1; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.pill .i { width: 14px; height: 14px; }
.pill:hover, .pill[aria-pressed="true"], .pill[aria-selected="true"], .pill--solid { background: var(--blue); border-color: var(--blue); color: var(--grey); }
.pill--solid:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.pill--on-blue { color: var(--on-blue); border-color: var(--on-blue-line); }
.pill--on-blue:hover, .pill--on-blue[aria-pressed="true"] { background: var(--on-blue); border-color: var(--on-blue); color: var(--blue); }
.pill--light { background: var(--on-blue); border-color: var(--on-blue); color: var(--blue); }
.pill--light:hover { background: var(--white, #fff); border-color: #fff; color: var(--blue); }
.pill--lg { font-size: 15px; height: 2.9em; padding: 0 1.4em; }
.pill:disabled { opacity: .45; cursor: default; }

/* black tool squares (his Ps / Ai icons) */
.sq {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); color: var(--grey); transition: transform .3s var(--ease), background-color .3s;
}
.sq:hover { background: var(--blue); }
.sq:active { transform: scale(.94); }
.sq .i { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h); display: flex; align-items: center; gap: 6px;
  padding: 0 var(--gutter); background: var(--blue); color: var(--on-blue);
}
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { width: 28px; height: 28px; }
.brand__word { font-family: var(--wide); font-weight: 400; font-size: 17px; letter-spacing: 0.01em; }
.nav__pills { display: flex; gap: 6px; margin-right: 6px; }
.nav__menu { display: none; }
.menu {
  position: absolute; right: var(--gutter); top: calc(var(--nav-h) - 6px);
  display: flex; flex-direction: column; min-width: 220px; padding: 8px;
  background: var(--grey); color: var(--blue); border-radius: 18px;
  box-shadow: 0 24px 50px -20px rgba(2, 0, 56, 0.6);
}
.menu a { padding: 12px 14px; border-radius: 12px; font-size: 16px; }
.menu a:hover { background: var(--blue); color: var(--grey); }

/* ---------------------------------------------------------------- cover */
.cover { position: relative; min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; color: var(--on-blue); }
.cover__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 2.4vw, 34px); padding: clamp(18px, 3vw, 48px) calc(var(--gutter) + 44px) clamp(28px, 4vw, 56px); }
.cover__side {
  position: absolute; top: 46%; writing-mode: vertical-rl; font-size: 12px; letter-spacing: 0.06em;
  color: var(--on-blue-soft); white-space: nowrap;
}
.cover__side--l { left: var(--gutter); transform: translateY(-50%) rotate(180deg); }
.cover__side--r { right: var(--gutter); transform: translateY(-50%); }
.cover__meta { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--on-blue-soft); }
.cover__meta span { display: inline-flex; align-items: center; gap: 8px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--red); display: inline-block; }

.odo {
  display: flex; align-items: flex-start; white-space: nowrap;
  font-family: var(--wide); font-weight: 300; font-variant-numeric: tabular-nums;
  font-size: clamp(44px, 11.4vw, 200px); line-height: 1; letter-spacing: -0.035em;
  color: var(--on-blue); margin-left: -0.04em;
}
.odo__c { display: inline-block; height: 1.08em; line-height: 1.08; }
.odo__d { display: inline-block; height: 1.08em; overflow: hidden; }
.odo__s { display: flex; flex-direction: column; transition: transform .7s var(--ease); }
.odo__s span { display: block; height: 1.08em; line-height: 1.08; }
.odo__c--sym { font-family: var(--sans); font-weight: 300; margin-right: 0.04em; }

.cover__row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 72px); align-items: end; }
.cover__title { font-weight: 400; font-size: clamp(26px, 3.1vw, 50px); line-height: 1.22; letter-spacing: -0.01em; color: var(--on-blue); }
.cover__note { font-size: 15px; line-height: 1.65; color: var(--on-blue-soft); max-width: 46ch; }
.cover__min { display: block; margin-top: 10px; color: var(--on-blue); }
.cover__min b { font-size: 15px; font-weight: 350; }

.search {
  display: flex; align-items: center; gap: 8px; width: min(100%, 980px);
  padding: 6px 6px 6px 26px; border-radius: 999px; background: var(--grey);
  transition: box-shadow .3s var(--ease);
}
.search:focus-within { box-shadow: 0 0 0 4px rgba(229, 228, 228, 0.35); }
.search input {
  flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 18px; color: var(--ink); caret-color: var(--blue);
}
.search input::placeholder { color: var(--mute); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.search__go { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: var(--grey); transition: background-color .3s; }
.search__go:hover { background: var(--blue); }
.search__go .i { width: 22px; height: 22px; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.popular__label { font-size: 13px; color: var(--on-blue-soft); margin-right: 6px; }

.band { overflow: hidden; border-top: 1px solid var(--on-blue-line); border-bottom: 1px solid var(--on-blue-line); color: var(--on-blue); }
.band__track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.band:hover .band__track { animation-play-state: paused; }
.band__item { display: inline-flex; align-items: center; gap: 10px; padding: 11px 0; font-size: 13px; white-space: nowrap; }
.band__item::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--on-blue-soft); margin: 0 22px; }
.band__item b { font-family: var(--wide); font-weight: 350; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- shared */
main { display: flex; flex-direction: column; gap: var(--gutter); padding-bottom: var(--gutter); }
.panel { position: relative; margin: 0 var(--gutter); background: var(--grey); border-radius: var(--radius); padding: var(--pad); }
.panel--bloom {
  background-image: radial-gradient(farthest-corner at 100% 100%,
    rgba(10, 0, 237, .5) 0%, rgba(10, 0, 237, .4) 4%, rgba(10, 0, 237, .31) 8%, rgba(10, 0, 237, .24) 12%,
    rgba(10, 0, 237, .18) 16%, rgba(10, 0, 237, .12) 21%, rgba(10, 0, 237, .07) 28%, rgba(10, 0, 237, .035) 36%,
    rgba(10, 0, 237, .012) 46%, rgba(10, 0, 237, 0) 56%);
}
.panel--bloom-l {
  background-image: radial-gradient(farthest-corner at 0% 100%,
    rgba(10, 0, 237, .36) 0%, rgba(10, 0, 237, .2) 10%, rgba(10, 0, 237, .09) 24%, rgba(10, 0, 237, .025) 40%, rgba(10, 0, 237, 0) 54%);
}
.title { font-weight: 400; font-size: clamp(34px, 4.6vw, 76px); line-height: 1.12; letter-spacing: -0.015em; color: var(--blue); text-wrap: balance; }
.title--xl { font-size: clamp(40px, 6vw, 96px); line-height: 1.06; }
.title--md { font-size: clamp(28px, 2.8vw, 44px); }
.title--on-blue { color: var(--on-blue); }

/* ---------------------------------------------------------------- categories */
.cats { padding: clamp(28px, 5vw, 80px) var(--gutter) clamp(8px, 1vw, 16px); color: var(--on-blue); }
.cats__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 40px; margin-bottom: clamp(20px, 3vw, 40px); }
.cats__note { font-size: 14px; color: var(--on-blue-soft); max-width: 34ch; }
.cats__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.tile {
  position: relative; display: grid; grid-template-rows: 1fr auto; aspect-ratio: 1.18;
  padding: clamp(10px, 1vw, 16px); border-radius: var(--r-tile); background: var(--grey); color: var(--ink);
  text-align: left; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.tile::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease);
  background: radial-gradient(farthest-corner at 100% 100%, rgba(10, 0, 237, .42), rgba(10, 0, 237, .14) 30%, rgba(10, 0, 237, 0) 60%);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(2, 0, 56, .7); }
.tile:hover::before, .tile[aria-pressed="true"]::before { opacity: 1; }
.tile[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.tile__glyph { position: relative; place-self: center; width: clamp(40px, 4.4vw, 64px); height: clamp(40px, 4.4vw, 64px); }
.tile__foot { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 12.5px; }
.tile__foot b { font-weight: 500; font-size: 14px; }
.tile__foot span { font-family: var(--wide); font-size: 11px; color: var(--ink-soft); white-space: nowrap; }

/* ---------------------------------------------------------------- board (Fastwork rows) */
.board__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 48px; margin-bottom: clamp(24px, 3vw, 44px); }
.board__note { max-width: 40ch; font-size: 14px; color: var(--ink-soft); }
.row + .row { margin-top: clamp(30px, 3.4vw, 52px); }
.row__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-blue); }
.row__title { font-weight: 400; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.3; color: var(--ink); }
.row__nav { display: flex; gap: 6px; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 20px; margin: -4px -2px -20px;
}
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.empty { padding: 36px; text-align: center; color: var(--ink-soft); border: 1px dashed var(--line-blue); border-radius: 16px; }

/* gig card, Fastwork anatomy: seller row, cover, title, counts, price */
.card {
  display: flex; flex-direction: column; min-width: 0; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 36px -24px rgba(2, 0, 56, .55); border-color: rgba(10, 0, 237, .3); }
.card__who { display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-width: 0; }
.card__who > div { min-width: 0; }
.card__who b { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__who small { display: block; font-size: 12px; line-height: 1.3; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card__cover svg { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.card:hover .card__cover svg { transform: scale(1.04); }
.card__state { position: absolute; right: 10px; top: 10px; }
.state { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--grey); color: var(--ink); font-size: 12px; line-height: 1; }
.state--low { background: var(--red); color: #fff; }
.state--empty { background: var(--ink); color: var(--grey); }
.state--new { background: var(--blue); color: var(--grey); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 14px; flex: 1; }
.card__title { font-size: 15px; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; }
.card__counts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--mute); }
.card__counts span { display: inline-flex; align-items: center; gap: 4px; }
.card__counts .i { width: 14px; height: 14px; }
.card__pool { display: flex; flex-direction: column; gap: 6px; }
.meter { height: 3px; border-radius: 3px; background: rgba(10, 0, 237, .12); overflow: hidden; }
.meter i { display: block; width: 100%; height: 100%; background: var(--blue); border-radius: inherit; transform-origin: left center; transform: scaleX(var(--p, 1)); transition: transform 1s var(--ease); }
.meter.is-low i { background: var(--red); }
.card__poolrow { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--mute); }
.card__poolrow b { color: var(--ink); font-weight: 500; }
.card__poolrow .is-low { color: var(--red); }
.card__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.card__foot span { font-size: 12.5px; color: var(--mute); }
.card__rate { font-family: var(--wide); font-weight: 400; font-size: 20px; letter-spacing: -0.02em; color: var(--blue); white-space: nowrap; }
.card__rate small { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--mute); margin-left: 3px; }
.card.is-empty .card__cover svg { filter: grayscale(1); opacity: .55; }
.card.bump { border-color: var(--blue); }

/* avatars: geometric, drawn per person */
.av { width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden; }
.av--lg { width: 64px; height: 64px; }
.av--xl { width: 88px; height: 88px; }
.verified { width: 15px; height: 15px; flex: none; color: var(--blue); }

/* cover art labels */
.cv-label { font-family: var(--wide); font-weight: 400; font-size: 15px; letter-spacing: 0.06em; }

/* ---------------------------------------------------------------- leaderboard (brand index) */
.lb__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px 40px; margin-bottom: clamp(26px, 3.4vw, 52px); }
.lb__ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.seg { display: flex; gap: 6px; }
.lb__reset { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.lb__reset b { color: var(--ink); font-size: 13px; }
.lbr {
  display: grid; grid-template-columns: 64px minmax(0, 2.4fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, 1fr) 64px;
  align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-blue);
}
.lbr--head { border-top: 0; padding: 0 0 8px; font-size: 12px; color: var(--ink-soft); }
.lbr--head span:nth-child(n+3) { text-align: right; }
.lb__list .lbr { position: relative; transition: background-color .8s var(--ease); }
.lb__list .lbr.is-up { background-color: rgba(10, 0, 237, .07); }
.lbr__rank { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 300; color: var(--ink-soft); }
.lbr__mv { display: inline-flex; align-items: center; font-family: var(--wide); font-size: 11px; }
.lbr__mv .i { width: 13px; height: 13px; stroke-width: 2; }
.mv-up { color: var(--blue); }
.mv-down { color: var(--red); }
.mv-flat { color: var(--mute); }
.lbr__who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lbr__name {
  font-family: var(--wide); font-weight: 350; text-transform: uppercase; font-size: clamp(16px, 1.55vw, 24px);
  letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .35s var(--ease);
}
.lbr__tag { flex: none; font-size: 11px; height: 20px; padding: 0 8px; }
.lbr__c { text-align: right; font-family: var(--wide); font-size: 14px; font-weight: 350; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.lbr__earn { text-align: right; font-family: var(--wide); font-size: clamp(16px, 1.4vw, 22px); font-weight: 350; color: var(--blue); font-variant-numeric: tabular-nums; }
.lbr__go { justify-self: end; color: var(--blue); }
.lbr__go .i { width: 22px; height: 22px; }
.lb__list .lbr:hover .lbr__name { color: var(--c, var(--blue)); }
.lbr--top { padding: 22px 0; }
.lbr--top .lbr__name { font-size: clamp(26px, 3.6vw, 58px); letter-spacing: -0.03em; }
.lbr--top .lbr__earn { font-size: clamp(22px, 2.4vw, 38px); }
.lbr--top .av { width: 56px; height: 56px; }

.you {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  margin-top: 18px; padding: 16px 18px 16px 0; border-top: 1px dashed var(--blue); border-bottom: 1px dashed var(--blue);
}
.you__rank { font-size: 16px; color: var(--blue); }
.you__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13.5px; color: var(--ink-soft); }
.you__main > b { font-weight: 500; color: var(--ink); font-size: 15px; }
.you__main .meter { max-width: 420px; }
.you__main span b { color: var(--blue); font-weight: 350; }
.you__earn { font-size: 18px; color: var(--ink); }

.peek {
  position: fixed; left: 0; top: 0; z-index: 40; width: 260px; padding: 16px; pointer-events: none;
  background: var(--card); border-radius: 16px; box-shadow: 0 26px 50px -24px rgba(2, 0, 56, .6);
  opacity: 0; transform: translate3d(0, 0, 0) scale(.96); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.peek.on { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.peek__top { display: flex; align-items: center; gap: 12px; }
.peek__top b { font-family: var(--wide); font-weight: 400; text-transform: uppercase; font-size: 15px; display: block; }
.peek__top small { font-size: 12px; color: var(--mute); }
.peek dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 14px 0 0; font-size: 12.5px; }
.peek dt { color: var(--mute); }
.peek dd { margin: 0; text-align: right; font-family: var(--wide); font-weight: 350; }

/* ---------------------------------------------------------------- rising */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); margin: 0 var(--gutter); }
.duo > .panel { margin: 0; }
.rise__note { margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); }
.rise__list { margin-top: clamp(18px, 2vw, 30px); }
.rise__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-blue); }
.rise__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rise__who > div { min-width: 0; }
.rise__who b { display: flex; align-items: center; gap: 5px; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rise__who small { display: block; font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rise__pct { font-family: var(--wide); font-weight: 350; font-size: clamp(20px, 1.8vw, 28px); color: var(--blue); letter-spacing: -0.02em; white-space: nowrap; }

/* ---------------------------------------------------------------- battle */
.battle__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px 48px; margin-bottom: clamp(26px, 3.4vw, 52px); }
.battle__note { max-width: 44ch; font-size: 14px; color: var(--ink-soft); }
.vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 48px); }
.vs__side { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); min-width: 0; }
.vs__side--b { flex-direction: row-reverse; text-align: right; }
.vs__side > div { min-width: 0; }
.vs__name { font-weight: 400; font-size: clamp(24px, 3.2vw, 52px); line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); }
.vs__sub { margin-top: 6px; font-size: 13px; color: var(--ink-soft); }
.vs__star { width: clamp(56px, 7vw, 110px); height: clamp(56px, 7vw, 110px); color: var(--blue); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.vs__bar { height: 10px; margin-top: clamp(22px, 3vw, 40px); border-radius: 999px; overflow: hidden; }
.vs__bar i { display: block; width: 100%; height: 100%; transform-origin: left center; transform: scaleX(var(--p, .5)); transition: transform 1.2s var(--ease); box-shadow: 3px 0 0 var(--grey); }
.vs__nums { margin-top: 8px; }
.vs__nums > div { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-blue); }
.vs__nums b { font-size: clamp(18px, 1.8vw, 28px); color: var(--ink); }
.vs__nums b:last-child { text-align: right; }
.vs__nums span { font-size: 13px; color: var(--ink-soft); text-align: center; }
.vs__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 15px; color: var(--ink-soft); }
.vs__foot p b { color: var(--ink); font-weight: 500; }
.funders__title { margin-top: clamp(36px, 4vw, 60px); margin-bottom: 14px; font-weight: 400; font-size: clamp(20px, 1.8vw, 28px); }
.funders { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.fund { display: flex; flex-direction: column; gap: 18px; padding: 16px; border-radius: var(--r-tile); background: var(--card); border: 1px solid var(--line); }
.fund__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fund__top b { font-size: 14px; font-weight: 500; line-height: 1.35; }
.fund__amt { font-family: var(--wide); font-weight: 350; font-size: clamp(18px, 1.5vw, 24px); color: var(--blue); letter-spacing: -0.02em; }
.fund__n { font-size: 12px; color: var(--mute); }

/* ---------------------------------------------------------------- tiers */
.tiers__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px 48px; margin-bottom: clamp(26px, 3.4vw, 52px); }
.mylevel { width: min(100%, 380px); display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-soft); }
.mylevel b { color: var(--ink); font-weight: 500; }
.mylevel span:last-child b { color: var(--blue); font-weight: 350; }
.tier-table { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-blue); }
.tier { display: flex; flex-direction: column; gap: 4px; padding: 24px clamp(14px, 1.6vw, 26px) 6px; border-left: 1px solid var(--line-blue); }
.tier:first-child { border-left: 0; padding-left: 0; }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); margin-bottom: 14px; }
.tool i { width: 4px; height: 16px; border-radius: 2px; background: var(--grey); }
.tool--star { background: var(--blue); }
.tool--star svg { width: 24px; height: 24px; color: var(--grey); }
.tier__name { font-weight: 400; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.2; color: var(--ink); }
.tier--top .tier__name { color: var(--blue); }
.tier__en { font-family: var(--wide); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-soft); }
.tier__req { align-self: flex-start; margin: 14px 0 8px; font-size: 12.5px; padding: 5px 11px; border: 1px solid var(--blue); border-radius: 999px; color: var(--blue); }
.ticks { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 10px; height: 6px; margin-top: 8px; border-left: 1.6px solid var(--blue); border-bottom: 1.6px solid var(--blue); transform: rotate(-45deg); }

/* ---------------------------------------------------------------- how (skills graph) */
.how__head { margin-bottom: clamp(10px, 2vw, 24px); }
.flow { position: relative; aspect-ratio: 1000 / 300; margin: 48px auto 40px; }
.flow__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow__line polyline { fill: none; stroke: var(--blue); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; text-align: center; }
.node .pill { font-size: 14px; height: 2.4em; position: relative; z-index: 1; }
.node p { position: absolute; bottom: calc(100% + 12px); width: min(23vw, 250px); font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.node--low p { bottom: auto; top: calc(100% + 12px); }

.calc {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(40px, 5vw, 80px); padding: clamp(20px, 2.6vw, 40px);
  background: var(--card); border-radius: var(--radius); box-shadow: 0 30px 60px -40px rgba(2, 0, 56, .55);
}
.calc__inputs { display: flex; flex-direction: column; gap: 18px; }
.calc__title { font-weight: 400; font-size: clamp(22px, 2vw, 30px); line-height: 1.25; color: var(--ink); }
.field { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; font-size: 14px; color: var(--ink-soft); }
.field b { font-size: 15px; color: var(--ink); }
.field input { grid-column: 1 / -1; width: 100%; margin: 0; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--blue); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 2px; background: var(--blue); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: var(--blue); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--blue); transition: transform .2s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--blue); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--blue); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
.calc__out { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding-left: clamp(0px, 3vw, 48px); border-left: 1px solid var(--line-blue); font-size: 14px; color: var(--ink-soft); }
.calc__out b { color: var(--ink); }
.calc__big { font-size: clamp(44px, 5.6vw, 92px); line-height: 1.05; color: var(--blue) !important; letter-spacing: -0.04em; font-weight: 300; }
.calc__rank { margin-top: 12px; font-size: 14px; }
.calc__rank b { color: var(--blue) !important; font-family: var(--wide); font-weight: 350; }

/* ---------------------------------------------------------------- creators */
.creators { padding: clamp(40px, 6vw, 110px) var(--gutter); color: var(--on-blue); }
.creators__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(28px, 4vw, 60px); align-items: start; }
.why li { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 8px 24px; padding: 20px 0; border-top: 1px solid var(--on-blue-line); }
.why li:last-child { border-bottom: 1px solid var(--on-blue-line); }
.why b { font-weight: 400; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.3; color: var(--on-blue); }
.why span { font-size: 14.5px; color: var(--on-blue-soft); }
.sim { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.sim__out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line-blue); border-bottom: 1px solid var(--line-blue); }
.sim__out span { display: block; font-size: 12.5px; color: var(--ink-soft); }
.sim__out b { font-size: clamp(22px, 2.2vw, 34px); color: var(--blue); letter-spacing: -0.03em; }
.sim .pill--lg { align-self: flex-start; }

/* ---------------------------------------------------------------- faq */
.faq__list { margin-top: clamp(24px, 3vw, 44px); max-width: 1000px; }
.faq details { border-top: 1px solid var(--line-blue); }
.faq details:last-child { border-bottom: 1px solid var(--line-blue); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: clamp(17px, 1.4vw, 21px); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--blue), var(--blue)) center / 100% 1.5px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 1.5px 100% no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; max-width: 68ch; color: var(--ink-soft); }

/* ---------------------------------------------------------------- end slide */
.end { padding: clamp(30px, 5vw, 80px) 0 32px; color: var(--on-blue); }
.band--end { margin-bottom: clamp(28px, 5vw, 80px); }
.end__word {
  display: flex; align-items: center; justify-content: center; gap: 0.06em; padding: 0 var(--gutter);
  font-family: var(--wide); font-weight: 400; font-size: clamp(54px, 15vw, 270px); line-height: .9; letter-spacing: -0.04em; color: var(--on-blue);
}
.end__star { width: .62em; height: .62em; flex: none; color: var(--on-blue); animation: spin 30s linear infinite; }
.end__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: clamp(28px, 4vw, 56px) var(--gutter) 0; }
.end__row p { font-size: 18px; }
.end__links { display: flex; flex-wrap: wrap; gap: 6px; }
.end__note { padding: 18px var(--gutter) 0; font-size: 12.5px; color: var(--on-blue-soft); }

/* ---------------------------------------------------------------- campaign sheet (dialog) */
.sheet {
  width: min(1180px, calc(100vw - 2 * var(--gutter))); max-width: none; max-height: calc(100svh - 40px);
  margin: auto auto 0; padding: 0; border: 0; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--grey); color: var(--ink); overflow: hidden; display: flex; flex-direction: column;
}
.sheet:not([open]) { display: none; }
.sheet[open] { animation: sheetUp .6s var(--ease) both; }
.sheet::backdrop { background: rgba(3, 0, 70, .62); animation: fade .4s ease both; }
@keyframes sheetUp { from { transform: translateY(70px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px var(--pad); border-bottom: 1px solid var(--line-blue); }
.sheet__crumb { font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__crumb b { font-weight: 500; color: var(--ink); }
.sheet__body { overflow: auto; padding: clamp(18px, 2.6vw, 40px) var(--pad) var(--pad); }
.gig { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.gig__title { font-weight: 400; font-size: clamp(26px, 2.8vw, 44px); line-height: 1.2; letter-spacing: -0.01em; color: var(--blue); }
.gig__who { display: flex; align-items: center; gap: 12px; margin: 18px 0 22px; }
.gig__who b { display: flex; align-items: center; gap: 5px; font-weight: 500; }
.gig__who small { display: block; font-size: 13px; color: var(--mute); }
.gig__cover { border-radius: var(--r-tile); overflow: hidden; aspect-ratio: 4 / 3; }
.gig__cover svg { width: 100%; height: 100%; }
.gig__sec { margin-top: 28px; }
.gig__sec h4 { margin: 0 0 10px; font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.gig__src { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-blue); border-bottom: 1px solid var(--line-blue); font-size: 15px; }
.gig__src .sq { flex: none; }
.gig__rules li { display: flex; gap: 10px; padding: 8px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.gig__rules li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--blue); }
.gig__top li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.gig__top li > span:first-child { font-size: 13px; color: var(--ink-soft); }
.gig__top b { font-family: var(--wide); font-weight: 350; text-transform: uppercase; font-size: 14px; }
.gig__top em { font-style: normal; font-family: var(--wide); font-weight: 350; color: var(--blue); }
.box { position: sticky; top: 0; display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 2vw, 28px); background: var(--card); border-radius: var(--r-tile); border: 1px solid var(--line); }
.box__rate { font-family: var(--wide); font-weight: 300; font-size: clamp(44px, 4.6vw, 72px); line-height: 1; letter-spacing: -0.04em; color: var(--blue); }
.box__rate small { display: block; margin-top: 6px; font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--ink-soft); }
.box dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; margin: 0; padding: 14px 0; border-top: 1px solid var(--line-blue); border-bottom: 1px solid var(--line-blue); font-size: 14px; }
.box dt { color: var(--ink-soft); }
.box dd { margin: 0; text-align: right; font-family: var(--wide); font-weight: 350; }
.box dd.is-low { color: var(--red); }
.box .pill--lg { width: 100%; }
.box__note { font-size: 12.5px; color: var(--mute); text-align: center; }

/* ---------------------------------------------------------------- notice */
.notice {
  position: fixed; left: 50%; bottom: 22px; z-index: 90; translate: -50% 0;
  max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px;
  background: var(--grey); color: var(--blue); font-size: 14px; text-align: center;
  box-shadow: 0 18px 40px -18px rgba(2, 0, 56, .7);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.notice.on { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .nav__pills { display: none; }
  .nav__menu { display: inline-flex; }
  .cats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .funders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .funders li:nth-child(n+4) { display: none; }
  .tier-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier:nth-child(3) { border-left: 0; padding-left: 0; }
  .tier:nth-child(n+3) { border-top: 1px solid var(--line-blue); }
}
@media (max-width: 900px) {
  .cover__inner { padding-left: var(--gutter); padding-right: var(--gutter); }
  .cover__side { display: none; }
  .cover__row { grid-template-columns: 1fr; }
  .track { grid-auto-columns: calc((100% - 16px) / 2); }
  .duo { grid-template-columns: 1fr; }
  .lbr { grid-template-columns: 52px minmax(0, 1fr) minmax(0, auto) 28px; }
  .lbr > :nth-child(3), .lbr > :nth-child(4) { display: none; }
  .lbr__go .i { width: 18px; height: 18px; }
  .lb__ctrl { align-items: flex-start; }
  .you { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .vs { grid-template-columns: 1fr; justify-items: start; }
  .vs__side--b { flex-direction: row; text-align: left; }
  .vs__star { order: 0; }
  .flow { aspect-ratio: auto; }
  .flow__line { display: none; }
  .flow__nodes { display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--blue); margin-left: 12px; }
  .node { position: relative; left: auto; top: auto; transform: none; align-items: flex-start; text-align: left; padding: 0 0 24px 22px; }
  .node::before { content: ""; position: absolute; left: -4px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
  .node p, .node--low p { position: static; width: auto; margin-top: 10px; }
  .calc { grid-template-columns: 1fr; }
  .calc__out { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-blue); padding-top: 20px; }
  .creators__grid { grid-template-columns: 1fr; }
  .gig { grid-template-columns: 1fr; }
  .box { position: static; }
}
@media (max-width: 640px) {
  :root { --nav-h: 58px; --pad: 20px; --gutter: 12px; }
  .nav .pill--light { display: none; }
  .cover__meta span:last-child { display: none; }
  .odo { font-size: 13.4vw; }
  .search { padding-left: 18px; }
  .search input { height: 44px; font-size: 16px; }
  .search__go { width: 44px; height: 44px; }
  .popular__label { width: 100%; }
  .cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile__foot span { display: none; }
  .track { grid-auto-columns: 78%; }
  .row__nav { display: none; }
  .lbr { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
  .lbr > :nth-child(6) { display: none; }
  .lbr--head > :nth-child(6) { display: none; }
  .lbr__who { gap: 10px; }
  .lbr__who .av { width: 30px; height: 30px; }
  .lbr__tag { display: none; }
  .lbr--top .av { width: 40px; height: 40px; }
  .lbr--top .lbr__name { font-size: 22px; }
  .lbr--top .lbr__earn { font-size: 19px; }
  .lbr__mv { display: none; }
  .you { grid-template-columns: 40px minmax(0, 1fr) auto; padding-right: 0; }
  .vs__nums b { font-size: 17px; }
  .funders { grid-template-columns: 1fr; }
  .funders li:nth-child(n+4) { display: flex; }
  .fund { flex-direction: row; justify-content: space-between; align-items: center; }
  .tier-table { grid-template-columns: 1fr; }
  .tier { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-blue); }
  .tier:first-child { border-top: 0; }
  .why li { grid-template-columns: 1fr; }
  .sim__out { grid-template-columns: 1fr; }
  .sheet { width: 100vw; max-height: calc(100svh - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .band__track { animation: none; }
  .band { overflow-x: auto; }
}
