/* VEIL — dark fantasy x tactical database. Single dark theme by design. */
:root {
  --bg: #09090B; --bg2: #111114; --card: #17171C; --line: #303037;
  --text: #E8E5DF; --sub: #85838A; --mid: #B4B1AA;
  --gold: #B99A68; --gold2: #C9AB79; --red: #71202A; --redtext: #CF7D85; --steel: #65717D; --steeltext: #8E9AA6;
  --serif: 'Bodoni Moda', 'Cormorant Garamond', 'Shippori Mincho B1', serif; /* Bodoni Moda is loaded with digits only, so letters fall through to Cormorant */
  --mincho: 'Shippori Mincho B1', 'Hiragino Mincho ProN', serif;
  --sans: 'Noto Sans JP', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1360px;
  /* layout: full-bleed cinematic sections, inner 1360px column, thin gold rules as structure */
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 500; }
p { margin: 0; }
::selection { background: var(--red); color: var(--text); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* ---------- type helpers ---------- */
.mono { font-family: var(--mono); letter-spacing: .16em; font-size: 11px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .3em; color: var(--gold); display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.serif { font-family: var(--serif); }
.mincho { font-family: var(--mincho); }
.muted { color: var(--sub); }
.gold { color: var(--gold); }
.badge { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: var(--bg); background: var(--gold); padding: 2px 6px; white-space: nowrap; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--gold); border: 1px solid rgba(185,154,104,.4); padding: 4px 8px; white-space: nowrap; }
.tag.dim { color: var(--sub); border-color: var(--line); }
.tag.warn { color: var(--redtext); border-color: rgba(207,125,133,.5); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 28px; font-family: var(--mono); font-size: 13px; letter-spacing: .16em; cursor: pointer; border: 1px solid transparent; transition: box-shadow .4s, background .4s, border-color .4s, color .4s; }
.btn.primary { background: var(--gold); color: var(--bg); font-weight: 500; }
.btn.primary:hover { background: var(--gold2); box-shadow: 0 0 28px -4px rgba(185,154,104,.6); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--mid); }
.btn.ghost:hover { border-color: var(--gold); color: var(--text); }
.link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--gold); padding: 10px 0; transition: color .3s; background: none; border: 0; cursor: pointer; }
.link:hover { color: var(--text); }
svg.ic { width: 16px; height: 16px; flex: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(9,9,11,.82); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(48,48,55,.7); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 26px; letter-spacing: .42em; font-weight: 500; }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--sub); padding: 8px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }
.head-tools { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); color: var(--sub); cursor: pointer; transition: border-color .3s, color .3s; }
.icon-btn:hover { border-color: var(--gold); color: var(--text); }
.menu-btn { display: none; }
@media (max-width: 1040px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-flex; }
  .demo-pill { display: none; }
}

/* ---------- atmosphere ---------- */
.atmo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fog { position: absolute; left: -10%; right: -10%; filter: blur(22px); animation: drift 42s ease-in-out infinite alternate; }
.fog.b { animation-duration: 58s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translate3d(-5%,0,0); } to { transform: translate3d(5%,-1.5%,0); } }
.breath { animation: breath 7s ease-in-out infinite; }
@keyframes breath { 0%,100% { opacity: .55; } 50% { opacity: .9; } }
.grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .07; mix-blend-mode: overlay; }
.ruins { position: absolute; left: 0; bottom: 0; width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 760px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 72%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 22%, #000 45%), linear-gradient(180deg, #000 68%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 22%, #000 45%), linear-gradient(180deg, #000 68%, transparent 100%); mask-composite: intersect; }
.hero-body { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero h1 { font-family: var(--serif); font-size: clamp(54px, 8vw, 120px); line-height: .92; letter-spacing: .02em; }
.hero h1 em { font-weight: 400; color: var(--gold); }
.hero .lead { font-family: var(--mincho); font-size: 17px; line-height: 2; letter-spacing: .06em; color: var(--mid); max-width: 520px; }
.hero-copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 28px; }
.hero-caption { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.rise { animation: rise 1.3s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* quick matchup bar */
.qbar { position: relative; z-index: 3; display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr auto; border: 1px solid var(--line); background: rgba(17,17,20,.8); backdrop-filter: blur(12px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); margin-bottom: 64px; }
.qbar > * { border-right: 1px solid var(--line); }
.qbar > *:last-child { border-right: 0; }
.qbar .qtitle { padding: 20px 26px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.field { position: relative; padding: 16px 22px; display: flex; flex-direction: column; gap: 4px; }
.field label { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; color: var(--sub); }
.field select, .field input { background: transparent; border: 0; color: var(--text); font-family: var(--serif); font-size: 22px; padding: 2px 26px 2px 0; appearance: none; -webkit-appearance: none; cursor: pointer; min-height: 40px; }
.field select option { background: var(--bg2); color: var(--text); font-family: var(--sans); font-size: 15px; }
.field .chev { position: absolute; right: 22px; bottom: 26px; color: var(--sub); pointer-events: none; }
.qbar .btn { min-height: 84px; justify-content: center; }
@media (max-width: 900px) { .qbar { grid-template-columns: 1fr 1fr; } .qbar > * { border-bottom: 1px solid var(--line); } .qbar .qtitle { grid-column: 1 / -1; } .qbar .btn { grid-column: 1 / -1; min-height: 60px; } }

/* ---------- sections ---------- */
.section { padding: 112px 0; position: relative; }
.section.tight { padding: 72px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 44px; }
.sec-head .t { display: flex; flex-direction: column; gap: 12px; }
.sec-head .n { display: flex; align-items: center; gap: 16px; }
.sec-head .n::after { content: ""; width: 56px; height: 1px; background: var(--gold); opacity: .6; order: 1; }
.sec-head h2 { font-family: var(--serif); font-size: clamp(38px, 4.4vw, 62px); line-height: 1; letter-spacing: .06em; }
.sec-head .jp { font-family: var(--mincho); font-size: 16px; letter-spacing: .1em; color: var(--sub); }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .wrap { display: flex; align-items: center; gap: 28px; padding-top: 32px; padding-bottom: 32px; }
.band .rule { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.band .rule.r { background: linear-gradient(90deg, var(--line), transparent); }
.band p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: .08em; color: var(--sub); text-align: center; }

/* ---------- page header (inner pages) ---------- */
.phead { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.phead .wrap { position: relative; z-index: 2; padding-top: 48px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 22px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; }
.crumbs a { color: var(--sub); } .crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--line); }
.crumbs [aria-current] { color: var(--gold); }
.phead h1 { font-family: var(--serif); font-size: clamp(50px, 7vw, 104px); line-height: .92; letter-spacing: .06em; }
.phead .jp { font-family: var(--mincho); font-size: 17px; letter-spacing: .12em; color: var(--mid); }
.phead-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 24px; }
.g4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--card); overflow: hidden; transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s, border-color .6s; }
a.card:hover, .card.hov:hover { transform: translateY(-6px); border-color: rgba(185,154,104,.55); box-shadow: 0 30px 60px -24px rgba(0,0,0,.9), 0 0 48px -14px rgba(185,154,104,.3); }
.art { position: relative; overflow: hidden; }
.art .fill { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: transform 1.4s cubic-bezier(.2,.7,.2,1), filter 1s; }
a.card:hover .art .fill { transform: scale(1.05); filter: brightness(1.15); }
.art .shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(23,23,28,.98)); }
.art .tl { position: absolute; top: 14px; left: 14px; background: rgba(9,9,11,.5); }
.art .tr { position: absolute; top: 14px; right: 14px; }
.sigil { filter: drop-shadow(0 0 14px rgba(185,154,104,.45)); }
.cbody { position: relative; margin-top: -56px; padding: 0 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.cname { font-family: var(--serif); font-size: 32px; line-height: 1.05; }
.ctitle { font-family: var(--mincho); font-size: 14px; letter-spacing: .08em; color: var(--gold); }
.cdesc { font-size: 13px; line-height: 1.8; color: var(--sub); min-height: 46px; }
.cfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.pips { display: inline-flex; gap: 4px; } .pips i { width: 18px; height: 3px; background: var(--line); } .pips i.on { background: var(--gold); }
.bars { display: flex; gap: 3px; flex: 1; } .bars i { flex: 1; height: 4px; background: var(--line); } .bars i.on { background: var(--gold); }
.portrait { width: 56px; height: 56px; flex: none; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.portrait.sm { width: 44px; height: 44px; }

/* ---------- patch / rows ---------- */
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.panel { border: 1px solid var(--line); background: linear-gradient(160deg, var(--card), var(--bg2)); padding: 36px; position: relative; overflow: hidden; }
.rows { border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 18px 8px; border-bottom: 1px solid var(--line); transition: background .4s; }
a.row:hover { background: rgba(185,154,104,.05); }
.chg { width: 92px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; }
.chg.buff { color: var(--gold); } .chg.nerf { color: var(--redtext); } .chg.adj { color: var(--steeltext); }

/* matchup card */
.mu-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.mu-side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mu-side.r { flex-direction: row-reverse; text-align: right; }
.mu-vs { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--gold); }
.mu-body { padding: 22px 26px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.keyrule { position: relative; margin: 0; padding: 20px 22px; background: rgba(9,9,11,.6); border: 1px solid rgba(185,154,104,.25); }
.keyrule::before { content: "“"; position: absolute; top: -14px; left: 16px; font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--gold); }
.keyrule .k { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--gold); margin-bottom: 6px; }
.keyrule .v { font-family: var(--mincho); font-size: 17px; line-height: 1.8; }
.dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.dl > div { display: flex; gap: 14px; } .dl dt { flex: none; width: 70px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--gold); padding-top: 4px; } .dl dt.red { color: var(--redtext); } .dl dd { margin: 0; font-size: 14px; color: var(--mid); }
.mu-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 20px 26px; border-top: 1px solid var(--line); }
.bignum { font-family: var(--serif); font-size: 40px; line-height: 1; }

/* ---------- filters ---------- */
.filters { border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), var(--bg2)); }
.frow { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.fsearch { flex: 3 1 320px; display: flex; align-items: center; gap: 14px; padding: 0 22px; border-right: 1px solid var(--line); color: var(--sub); }
.fsearch input { flex: 1; min-width: 0; min-height: 64px; background: transparent; border: 0; font-family: var(--serif); font-size: 22px; color: var(--text); }
.fsearch input::placeholder { color: var(--sub); }
.fsort { flex: 1 1 220px; position: relative; display: flex; align-items: center; gap: 14px; padding: 0 22px; }
.fsort select { flex: 1; min-height: 64px; background: transparent; border: 0; font-family: var(--mincho); appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 24px; }
.fsort select option { background: var(--bg2); }
.fsort .chev { position: absolute; right: 22px; color: var(--sub); pointer-events: none; }
.fgroups { display: flex; flex-wrap: wrap; gap: 18px 40px; padding: 18px 22px; }
.fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fgroup > span { width: 56px; }
.chip { min-height: 40px; padding: 0 16px; background: transparent; border: 1px solid var(--line); color: var(--sub); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; cursor: pointer; transition: border-color .3s, color .3s, background .3s; }
.chip:hover { border-color: var(--gold); color: var(--text); }
.chip[aria-pressed="true"] { background: rgba(185,154,104,.12); border-color: var(--gold); color: var(--text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* empty / error */
.empty { border: 1px dashed var(--line); padding: 80px 28px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.empty h3 { font-family: var(--mincho); font-size: 20px; }

/* ---------- detail ---------- */
.dhero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.dhero .wrap { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; padding-top: 40px; padding-bottom: 56px; }
.dvisual { flex: 0 1 380px; aspect-ratio: 4 / 5; border: 1px solid var(--line); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.dinfo { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.dinfo h1 { font-family: var(--serif); font-size: clamp(56px, 7vw, 108px); line-height: .9; letter-spacing: .02em; }
.facts { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { flex: 1 1 120px; padding: 16px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.facts > div:last-child { border-right: 0; }
.cta-mu { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; border: 1px solid rgba(185,154,104,.5); background: linear-gradient(90deg, rgba(185,154,104,.12), rgba(113,32,42,.12)); }
.dgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 960px) { .dgrid { grid-template-columns: 1fr; } }
.block { display: flex; flex-direction: column; gap: 18px; }
.block h2 { font-family: var(--serif); font-size: 34px; letter-spacing: .06em; display: flex; align-items: baseline; gap: 14px; }
.block h2 small { font-family: var(--mincho); font-size: 14px; color: var(--sub); letter-spacing: .1em; }
.skill { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.skill .key { width: 44px; height: 44px; flex: none; border: 1px solid rgba(185,154,104,.5); display: flex; align-items: center; justify-content: center; font-family: var(--mono); color: var(--gold); }
.skill h3 { font-family: var(--mincho); font-size: 17px; }
.skill p { font-size: 14px; color: var(--mid); }
.combo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.combo .step { border: 1px solid var(--line); padding: 8px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }
.combo .arrow { color: var(--gold); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.item { border: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; background: var(--bg2); }
.item b { font-family: var(--mono); font-size: 10px; color: var(--gold); font-weight: 400; letter-spacing: .14em; }
.item span { font-family: var(--mincho); font-size: 14px; }
.stat { display: grid; grid-template-columns: 90px 1fr 24px; align-items: center; gap: 12px; font-size: 13px; }
.stat .track { height: 4px; background: var(--line); } .stat .track i { display: block; height: 100%; background: var(--gold); }
.prose { font-size: 15px; color: var(--mid); line-height: 2; max-width: 65ch; }
.side-list { display: flex; flex-direction: column; gap: 10px; }
.side-list a { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); background: var(--bg2); transition: border-color .3s; }
.side-list a:hover { border-color: var(--gold); }

/* ---------- matchup lab ---------- */
.lab-form { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) auto; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), var(--bg2)); }
.lab-form > * { border-right: 1px solid var(--line); } .lab-form > *:last-child { border-right: 0; }
.lab-form .btn { min-height: 84px; }
@media (max-width: 820px) { .lab-form { grid-template-columns: 1fr; } .lab-form > * { border-right: 0; border-bottom: 1px solid var(--line); } }
.res-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding: 32px; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(185,154,104,.08), rgba(113,32,42,.12)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); }
.kpis > div { padding: 20px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.kpis > div:last-child { border-right: 0; }
.phase { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1px solid var(--line); }
.phase > div { padding: 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.phase > div:last-child { border-right: 0; }
@media (max-width: 820px) { .phase { grid-template-columns: 1fr; } .phase > div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- lore ---------- */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--gold); }
.timeline > div { padding: 24px 24px 0 0; display: flex; flex-direction: column; gap: 8px; position: relative; }
.timeline > div::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.seal { border: 1px solid var(--line); padding: 22px; background: var(--bg2); display: flex; flex-direction: column; gap: 12px; }
.seal .sealed { filter: blur(5px); user-select: none; color: var(--sub); }
.rel { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- tier ---------- */
.tier { display: grid; grid-template-columns: 140px repeat(3, minmax(0,1fr)); border: 1px solid var(--line); }
.tier > div { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 64px; }
.tier .h { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--sub); }
.tier .tS { color: var(--gold); font-family: var(--serif); font-size: 26px; }
.tchip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 4px 10px 4px 4px; font-family: var(--serif); font-size: 17px; background: var(--bg2); transition: border-color .3s; }
.tchip:hover { border-color: var(--gold); }
@media (max-width: 760px) { .tier { grid-template-columns: 90px repeat(3, minmax(0,1fr)); } .tchip { font-size: 14px; } }
.table-box { overflow-x: auto; border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--sub); font-weight: 400; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg2); }
table.data th button { background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; padding: 0; }
table.data th button:hover, table.data th[aria-sort] button { color: var(--gold); }
table.data td { padding: 12px 18px; border-bottom: 1px solid var(--line); }
table.data tr:hover td { background: rgba(185,154,104,.04); }

/* ---------- search dialog ---------- */
.dialog { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 10vh 20px 20px; background: rgba(5,5,7,.78); backdrop-filter: blur(6px); }
.dialog.open { display: flex; }
.dialog .box { width: min(720px, 100%); border: 1px solid var(--line); background: var(--bg2); box-shadow: 0 40px 100px -30px #000; }
.dialog .in { display: flex; align-items: center; gap: 14px; padding: 0 22px; border-bottom: 1px solid var(--line); color: var(--sub); }
.dialog input { flex: 1; min-height: 68px; background: transparent; border: 0; font-family: var(--serif); font-size: 24px; color: var(--text); }
.dialog .results { max-height: 52vh; overflow-y: auto; }
.dialog .results a { display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.dialog .results a:hover, .dialog .results a:focus-visible { background: rgba(185,154,104,.07); outline: 0; }

/* ---------- loading / transitions ---------- */
.curtain { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: opacity .7s ease, visibility .7s; }
.curtain.done { opacity: 0; visibility: hidden; }
.curtain svg { animation: breath 1.6s ease-in-out infinite; }
#view { animation: viewin .6s cubic-bezier(.2,.7,.2,1) both; }
#view.swap { animation: none; }
@keyframes viewin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 56px; }
.site-footer .col { display: flex; flex-direction: column; gap: 12px; }
.site-footer .col a { font-size: 13px; color: var(--sub); } .site-footer .col a:hover { color: var(--text); }
.site-footer .bottom { border-top: 1px solid rgba(48,48,55,.6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 32px; }
.disclaimer { font-size: 12px; line-height: 1.9; color: var(--sub); max-width: 460px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- detail page additions ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--gold); color: var(--bg); padding: 10px 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; }
.skip:focus { top: 12px; }
.dtabs { position: sticky; top: 72px; z-index: 40; background: rgba(9,9,11,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.dtabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.dtab { flex: none; min-height: 52px; padding: 0 18px; background: none; border: 0; border-bottom: 1px solid transparent; color: var(--sub); font-family: var(--mincho); font-size: 15px; cursor: pointer; transition: color .3s, border-color .3s; }
.dtab:hover { color: var(--text); }
.dtab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--gold); }
.subh { font-family: var(--mincho); font-size: 17px; color: var(--text); margin-top: 8px; }
.pickbox { border-left: 1px solid var(--gold); padding: 4px 0 4px 18px; display: flex; flex-direction: column; gap: 6px; }
.phasebox { border: 1px solid var(--line); background: var(--bg2); }
.phase-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.phase-cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.phase-cols > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); }
.phase-cols > div:last-child { border-right: 0; }
.key.sm, .combo .key.sm { width: 26px; height: 26px; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(185,154,104,.5); color: var(--gold); margin-right: 8px; font-family: var(--mono); }
.combo .step { display: inline-flex; align-items: center; font-family: var(--mincho); font-size: 14px; letter-spacing: .02em; padding: 6px 12px 6px 6px; }
.loadout { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.loadout .item small { font-size: 12px; line-height: 1.7; margin-top: 4px; }
.callout { display: flex; gap: 16px; align-items: baseline; padding: 14px 18px; border: 1px solid var(--line); background: var(--bg2); }
.callout .mono { flex: none; width: 76px; font-size: 10px; }
.callout p { font-size: 14px; color: var(--text); }
.callout.tip { border-left: 2px solid var(--gold); } .callout.tip .mono { color: var(--gold); }
.callout.warn { border-left: 2px solid var(--redtext); } .callout.warn .mono { color: var(--redtext); }
.mistakes { margin: 0; padding: 0; list-style: none; counter-reset: m; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mistakes li { counter-increment: m; display: flex; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--mid); }
.mistakes li::before { content: "0" counter(m); font-family: var(--mono); font-size: 11px; color: var(--redtext); padding-top: 3px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 4px; font-family: var(--mincho); font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-family: var(--mono); font-size: 18px; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 4px 18px; font-size: 14px; color: var(--mid); max-width: 65ch; }
.byline { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border: 1px dashed var(--line); }
.daside { display: flex; flex-direction: column; gap: 40px; align-self: start; position: sticky; top: 148px; }
@media (max-width: 960px) { .daside { position: static; } }
@media (max-width: 560px) { .phase-cols { grid-template-columns: 1fr; } .phase-cols > div { border-right: 0; border-bottom: 1px solid var(--line); } }
.items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.slot { border: 1px dashed var(--line); background: repeating-linear-gradient(135deg, rgba(48,48,55,.18) 0 8px, transparent 8px 16px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; }
.skins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.skin { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.skin img { aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); }
.skin figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.delta { font-size: 12px; color: var(--sub); min-width: 40px; text-align: right; }
@media (max-width: 640px) { .skins { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.dvisual { flex: 0 1 280px; }
.dhero .wrap { padding-bottom: 36px; }
.dinfo h1 { font-size: clamp(52px, 6vw, 92px); }
[role="tabpanel"] { animation: viewin .45s cubic-bezier(.2,.7,.2,1) both; }
[role="tabpanel"]:focus { outline: none; }
.dtabs .wrap::-webkit-scrollbar { display: none; }
[hidden] { display: none !important; }
@media (max-width: 640px) {
  .dhero .wrap { padding-top: 24px; gap: 18px !important; }
  .dvisual { flex: 1 1 100%; aspect-ratio: auto; height: 150px; }
  .dvisual .sigil { width: 110px; height: 110px; }
  .dinfo { gap: 12px; }
  .dinfo .prose { display: none; }
  .facts > div { flex: 1 1 33%; padding: 10px 12px; }
}
@media (max-width: 640px) {
  .dvisual { height: 110px; }
  .dinfo h1 { font-size: 46px; }
}
.facts .serif.num { white-space: nowrap; font-size: 21px !important; }
.facts .serif.num .muted { font-size: 14px !important; }
.skill { flex-wrap: wrap; }
.skill > div:not(.vclip) { flex: 1 1 260px; }
.vclip { flex: 0 0 240px; aspect-ratio: 16 / 9; position: relative; padding: 0; border: 1px solid var(--line); background: var(--bg2); overflow: hidden; cursor: pointer; }
button.vclip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vclip .vplay { position: absolute; left: 10px; bottom: 8px; font-size: 10px; color: var(--text); background: rgba(9,9,11,.7); padding: 3px 7px; transition: opacity .3s; }
.vclip.on .vplay { opacity: 0; }
.vclip .vcredit { position: absolute; right: 8px; bottom: 8px; font-size: 8px; color: var(--sub); }
button.vclip:hover { border-color: var(--gold); }
.vclip.slot { padding: 12px; }
@media (max-width: 640px) { .vclip { flex: 1 1 100%; } }
.bvars { display: flex; flex-wrap: wrap; gap: 8px; }
.bhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.bhead .prose { flex: 1 1 320px; }
.bmeter { display: flex; align-items: center; gap: 8px; }
.bm { display: inline-flex; gap: 3px; } .bm i { width: 14px; height: 6px; background: var(--line); } .bm i.a { background: var(--redtext); } .bm i.d { background: var(--steeltext); }
.ov-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; }
@media (max-width: 760px) { .ov-grid { grid-template-columns: 1fr; } }
.ov-rates { border: 1px solid var(--line); background: var(--bg2); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.rate { display: grid; grid-template-columns: 56px 1fr 24px; align-items: center; gap: 12px; font-size: 13px; color: var(--mid); }
.rate .track { height: 4px; background: var(--line); } .rate .track i { display: block; height: 100%; background: var(--gold); }
.ov-pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
.ov-pc > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.ov-pc > div:first-child { border-right: 1px solid var(--line); }
.ov-pc ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ov-pc li { font-size: 14px; color: var(--text); padding-left: 16px; position: relative; line-height: 1.7; }
.ov-pc li::before { content: "+"; position: absolute; left: 0; color: var(--gold); font-family: var(--mono); }
.ov-pc ul.con li::before { content: "−"; color: var(--redtext); }
@media (max-width: 520px) { .ov-pc { grid-template-columns: 1fr; } .ov-pc > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); } }
.ov-syn { display: flex; flex-direction: column; gap: 10px; }
.sample-note { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--sub); }
.stat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.chart-box { border: 1px solid var(--line); background: var(--bg2); padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; color: var(--mid); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 18px; height: 0; border-top: 2px solid var(--gold); display: inline-block; }
.lg.dash { border-top: 1.5px dashed var(--sub); } .lg.faint { opacity: .3; }
.rankbtn { background: none; border: 0; padding: 4px 0; color: var(--text); font-family: var(--mincho); font-size: 14px; cursor: pointer; text-align: left; }
.rankbtn:hover { color: var(--gold); }
table.data tr.on td { background: rgba(185,154,104,.08); }
table.data tr.on .rankbtn { color: var(--gold); }
.facts .serif { white-space: nowrap; font-size: 19px !important; }
.iicon { flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, #1e1e24, #111114); }
.icard { padding: 20px; gap: 14px; }
.icard-top { display: flex; align-items: center; gap: 16px; }
a.ilink { transition: border-color .3s; } a.ilink:hover { border-color: var(--gold); }
@media (max-width: 1180px) { .nav { gap: 22px; } .nav a { letter-spacing: .12em; } }
.icard .cfoot { margin-top: auto; }
.rolepick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.rolepick .chip { min-height: 36px; }
.loadout { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.talent { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-family: var(--mincho); font-size: 14px; padding: 4px 0; }
.talent em { font-style: normal; font-size: 10px; color: var(--gold); width: 14px; }
.talent small { flex-basis: 100%; padding-left: 22px; font-family: var(--sans); font-size: 12px; }
.embwrap { display: contents; }
.loadout .item .bvars { margin-top: 10px; }
.loadout .item .chip { min-height: 32px; padding: 0 12px; }
.lmarks { display: inline-flex; gap: 4px; }
.lm { font-family: var(--mono); font-size: 9px; letter-spacing: .04em; padding: 2px 5px; border: 1px solid var(--line); color: var(--sub); }
.lm.main { border-color: rgba(185,154,104,.6); color: var(--gold); }
.field { min-width: 0; }
.field select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.lab-form > *, .qbar > * { min-width: 0; }
.res-head .mu-side { min-width: 0; }
.res-head .mincho { overflow-wrap: anywhere; }

/* ---------- hero background art (champion detail) ---------- */
.dhero.has-art { min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; }
.dhero.has-art .atmo { opacity: .5; }
.dbg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.dbg img { position: absolute; top: 0; right: 0; width: 78%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 24%, #000 50%), linear-gradient(180deg, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 24%, #000 50%), linear-gradient(180deg, #000 60%, transparent 100%); mask-composite: intersect; }
.dbg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,9,11,.9) 0%, rgba(9,9,11,.55) 38%, rgba(9,9,11,.08) 70%), linear-gradient(0deg, rgba(9,9,11,.85) 0%, rgba(9,9,11,0) 45%); }
.dbg-credit { position: absolute; right: 16px; bottom: 12px; z-index: 3; font-size: 9px; letter-spacing: .14em; color: var(--mid); opacity: .8; }
.dhero.has-art > .wrap { width: 100%; }
.dhero.has-art .dinfo { max-width: 640px; }
.dhero.has-art .dinfo h1, .dhero.has-art .dinfo .eyebrow, .dhero.has-art .dinfo p { text-shadow: 0 2px 18px rgba(9,9,11,.8); }
.art-img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85); }
@media (max-width: 720px) {
  .dhero.has-art { min-height: 0; }
  .dbg img { width: 100%; height: 300px; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .dbg::after { background: linear-gradient(180deg, rgba(9,9,11,.55) 0%, rgba(9,9,11,0) 18%, rgba(9,9,11,0) 40%, rgba(9,9,11,.9) 80%, #09090B 300px); }
  .dhero.has-art .wrap { padding-top: 16px !important; }
  .dhero.has-art .dinfo { padding-top: 170px; }
  .dbg-credit { top: 280px; bottom: auto; }
}

/* ---------- detail body background ---------- */
.dbody { position: relative; }
.dbody > .wrap { position: relative; z-index: 1; }
.dbody-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.dbody-pin { position: sticky; top: 0; height: 100vh; min-height: 520px; overflow: hidden; }
.dbody-glow { position: absolute; inset: 0; }
.dbody-art { position: absolute; top: 52%; right: -6%; width: 82%; height: auto; max-height: 92%; object-fit: cover; transform: translateY(-50%); opacity: .38; filter: blur(.4px) saturate(.75) brightness(.85);
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 52% 48%, #000 35%, transparent 80%); mask-image: radial-gradient(ellipse 55% 60% at 52% 48%, #000 35%, transparent 80%); }
.dbody-sig { position: absolute; right: -60px; top: 55%; transform: translateY(-50%); opacity: .17; }
.dbody-ruins { height: 240px; opacity: .9; }
.dbody-fog { bottom: 60px; height: 320px; background: radial-gradient(ellipse 45% 50% at 70% 60%, rgba(133,131,138,.08), transparent 70%), radial-gradient(ellipse 35% 45% at 20% 50%, rgba(133,131,138,.06), transparent 70%); }
.dbody .grain { opacity: .05; }
.dbody .ov-rates, .dbody .ov-pc, .dbody .slot, .dbody .faq, .dbody .chart-box, .dbody .side-list a, .dbody .ov-syn a, .dbody .skill, .dbody .byline, .dbody table { background-color: rgba(11,11,14,.72); }
@media (max-width: 720px) {
  .dbody-art { width: 170%; right: -55%; opacity: .26; }
  .dbody-sig .sigil { width: 360px; height: 360px; }
}

.dbg-next { position: absolute; right: 16px; top: 16px; z-index: 3; font-size: 10px; letter-spacing: .14em; color: var(--text); background: rgba(9,9,11,.55); border: 1px solid var(--line); padding: 8px 12px; cursor: pointer; transition: border-color .3s, color .3s; }
.dbg-next:hover, .dbg-next:focus-visible { border-color: rgba(185,154,104,.6); color: var(--gold); }

/* ---------- roulette ---------- */
.icon-btn.on { color: var(--gold); border-color: rgba(185,154,104,.5); }
.rl-cta { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid rgba(185,154,104,.35); background: linear-gradient(90deg, rgba(185,154,104,.08), transparent 70%); color: var(--text); transition: border-color .3s, background .3s; }
.rl-cta:hover, .rl-cta:focus-visible { border-color: rgba(185,154,104,.7); background: linear-gradient(90deg, rgba(185,154,104,.14), transparent 80%); }
.rl-cta > .ic:first-child { width: 28px; height: 28px; color: var(--gold); flex: none; }
.rl-cta > span { display: flex; flex-direction: column; gap: 2px; flex: 1; font-size: 14px; }
.rl-cta > span b { font-family: var(--serif-jp, serif); font-weight: 500; font-size: 16px; }
.rl-layout { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; align-items: start; }
.rl-side { display: flex; flex-direction: column; gap: 28px; }
.rl-toggle { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--mid); cursor: pointer; line-height: 1.6; }
.rl-toggle input { accent-color: #B99A68; width: 16px; height: 16px; margin-top: 3px; flex: none; }
.rl-exbox { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.rl-exlist { display: flex; flex-wrap: wrap; gap: 8px; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--mid); font-size: 11px; letter-spacing: .12em; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.linkbtn:hover { color: var(--gold); }
.rl-stage { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.rl-reel { --cell: 92px; position: relative; width: 100%; max-width: 520px; height: calc(var(--cell) * 3); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, #0B0B0E, #111114 50%, #0B0B0E);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 74%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 74%, transparent 100%); }
.rl-reel::before { content: ""; position: absolute; left: 0; right: 0; top: var(--cell); height: var(--cell); border-top: 1px solid rgba(185,154,104,.45); border-bottom: 1px solid rgba(185,154,104,.45); background: rgba(185,154,104,.05); z-index: 1; pointer-events: none; transition: background .5s, box-shadow .5s; }
.rl-reel.landed::before { background: rgba(185,154,104,.12); box-shadow: inset 0 0 40px -10px rgba(185,154,104,.55); }
.rl-mark { position: absolute; top: calc(var(--cell) * 1.5 - 7px); width: 0; height: 0; border: 7px solid transparent; z-index: 2; }
.rl-mark.l { left: 0; border-left-color: #B99A68; }
.rl-mark.r { right: 0; border-right-color: #B99A68; }
.rl-strip { will-change: transform; }
.rl-cell { height: var(--cell); display: flex; align-items: center; gap: 18px; padding: 0 36px; }
.rl-cell .portrait { width: 56px; height: 56px; flex: none; }
.rl-names { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rl-names b { font-size: 24px; font-weight: 500; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-names span { font-size: 11px; letter-spacing: .12em; }
.rl-empty { justify-content: center; margin-top: var(--cell); }
.rl-spin { min-width: 260px; justify-content: center; }
.rl-spin[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
#rl-out { width: 100%; max-width: 520px; }
.rl-result { display: flex; flex-direction: column; gap: 20px; padding: 28px; border: 1px solid rgba(185,154,104,.4); background: radial-gradient(ellipse 80% 90% at 85% 0%, rgba(var(--rgb), .16), transparent 70%), #111114; }
.rl-res-main { display: flex; align-items: center; gap: 20px; }
.rl-res-main .portrait { width: 72px; height: 72px; flex: none; }
.rl-res-main h2 { font-size: 40px; font-weight: 500; line-height: 1.1; }
.rl-lane { display: flex; align-items: baseline; gap: 14px; padding: 12px 16px; border-left: 2px solid #B99A68; background: rgba(185,154,104,.06); }
.rl-lane span { font-size: 10px; letter-spacing: .16em; }
.rl-lane b { font-size: 22px; font-weight: 500; color: var(--gold); }
.rl-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.rl-facts div { display: flex; flex-direction: column; gap: 4px; }
.rl-facts dt { font-size: 11px; color: var(--mid); }
.rl-facts dd { margin: 0; font-size: 14px; }
.rl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rl-actions .btn { min-height: 44px; padding: 0 18px; font-size: 12px; }
.rl-note { text-align: center; font-size: 13px; }
@media (max-width: 900px) { .rl-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; } .rl-stage { order: -1; } }
@media (max-width: 560px) { .rl-reel { --cell: 76px; } .rl-cell { padding: 0 22px; gap: 14px; } .rl-cell .portrait { width: 44px; height: 44px; } .rl-names b { font-size: 19px; } .rl-res-main h2 { font-size: 30px; } .rl-result { padding: 20px; } .rl-spin { width: 100%; min-width: 0; } }

/* portrait icons cut from the hero art */
.portrait.has-img { overflow: hidden; position: relative; background: #111114; }
.portrait.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.9); filter: saturate(.9); }

/* ---------- equipment / emblem / spells ---------- */
.gicon { flex: none; display: inline-flex; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(185,154,104,.35), 0 6px 18px -8px rgba(0,0,0,.8); background: #111114; }
.gicon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gtabs { display: flex; flex-wrap: wrap; gap: 0; margin-top: 32px; border-bottom: 1px solid var(--line); }
.gtabs a { display: flex; flex-direction: column; gap: 4px; padding: 12px 22px 14px; color: var(--mid); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 15px; transition: color .3s, border-color .3s; }
.gtabs a span { color: var(--mid); opacity: .8; }
.gtabs a:hover { color: var(--text); }
.gtabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--gold); }
.gtabs a[aria-current="page"] span { color: var(--gold); opacity: 1; }
.istats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text); }
.istats li { font-variant-numeric: tabular-nums; }
.istats b { color: var(--gold); font-weight: 500; margin-left: 6px; }
.istats.big { font-size: 18px; gap: 10px; font-family: var(--serif); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.tcard { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23,23,28,.85), rgba(17,17,20,.85)); scroll-margin-top: 140px; }
.tcard h3 { font-size: 20px; font-weight: 500; }
.embgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ecard { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); background: #111114; }
.ecard h3 { font-size: 20px; font-weight: 500; }
@media (max-width: 560px) { .tgrid { grid-template-columns: minmax(0, 1fr); } .tcard { padding: 16px; gap: 14px; } .gtabs a { padding: 10px 14px 12px; font-size: 14px; } }

/* ---------- MY PAGE ---------- */
.me-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.me-tile { background: linear-gradient(160deg, var(--card), var(--bg2)); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.me-big { font-size: 38px; line-height: 1; color: var(--text); }
.me-diff { font-family: var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.me-diff.up { color: var(--gold); } .me-diff.down { color: var(--redtext); }
.me-bar { position: relative; width: 90px; height: 4px; background: var(--line); display: block; flex: none; }
.me-bar i { display: block; height: 100%; border-radius: 0 2px 2px 0; }
.me-bar b { position: absolute; left: 50%; top: -3px; width: 1px; height: 10px; background: var(--sub); }
.me-wr { display: flex; align-items: center; gap: 10px; } .me-wr .num { min-width: 52px; }
.me-hero { display: flex; align-items: center; gap: 12px; }
.me-thin { font-size: 9px; padding: 2px 5px; margin-left: 6px; letter-spacing: .1em; vertical-align: middle; }
table.data.me-table { min-width: 460px; }
.me-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px; }
.me-two > div { min-width: 0; }
.me-best { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.me-bcard { padding: 22px; gap: 16px; }
.me-bnums { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.me-bnums > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.me-strip { display: flex; gap: 2px; }
.me-strip i { flex: 1; height: 10px; min-width: 2px; border-radius: 1px; }
.me-strip i.w, .me-key.w { background: var(--gold); } .me-strip i.l, .me-key.l { background: var(--steel); }
.me-key { display: inline-block; width: 10px; height: 10px; margin: 0 4px 0 6px; vertical-align: -1px; border-radius: 1px; }
@media (max-width: 640px) {
  .me-two { grid-template-columns: 1fr; }

  .me-big { font-size: 30px; }
}
.me-note { font-size: 13px; color: var(--mid); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.me-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.me-note .me-key { margin: 0 2px 0 0; }
.nav a { white-space: nowrap; }
@media (min-width: 1041px) and (max-width: 1320px) { .nav { gap: 20px; } .nav a { letter-spacing: .1em; font-size: 11px; } .demo-pill { display: none; } }
.dtab2 { display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; min-height: 62px; padding: 0 22px; font-size: 16px; letter-spacing: .12em; }
.dtab2 .mono { font-size: 9px; letter-spacing: .24em; color: var(--sub); transition: color .3s; }
.dtab2[aria-selected="true"] .mono, .dtab2:hover .mono { color: var(--gold); }

/* ---------- MATCH LOG (my page) ---------- */
.mlog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.mlog-prog { width: 220px; height: 4px; background: var(--line); display: block; } .mlog-prog i { display: block; height: 100%; background: var(--gold); border-radius: 0 2px 2px 0; transition: width .4s; }
.mlog { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mlog-row { display: grid; grid-template-columns: 150px auto 28px auto; justify-content: start; align-items: center; gap: 18px; padding: 14px 18px; background: var(--bg2); transition: background .3s; }
.mlog-row.picked { background: linear-gradient(90deg, rgba(185,154,104,.07), var(--bg2) 55%); }
.mlog-info { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.mlog-res { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; } .mlog-res.w { color: var(--gold); } .mlog-res.l { color: var(--steeltext); }
.mlog-team { display: flex; gap: 4px; }
.mlog-h { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px 4px 4px; background: none; border: 1px solid transparent; color: var(--sub); font: inherit; }
.mlog-h .mono { font-size: 8px; letter-spacing: .12em; }
button.mlog-h { cursor: pointer; transition: border-color .25s, background .25s; } button.mlog-h:hover { border-color: rgba(185,154,104,.45); }
button.mlog-h:focus-visible { outline: 1px solid var(--gold); outline-offset: 1px; }
.mlog-h.on { border-color: var(--gold); background: rgba(185,154,104,.12); color: var(--gold); }
.mlog-h b { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-weight: 400; font-size: 8px; letter-spacing: .14em; background: var(--gold); color: var(--bg); padding: 1px 5px; }
.mlog-team.enemy .mlog-h { opacity: .55; }
.mlog-h.none .portrait { background: var(--card); }
.mlog-vs { font-size: 10px; text-align: center; }
@media (max-width: 760px) {
  .mlog-row { grid-template-columns: 1fr; gap: 10px; padding: 14px 12px; }
  .mlog-info { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .mlog-vs { display: none; }
  .mlog-team { justify-content: space-between; }
  .mlog-team.enemy::before { content: "VS"; font-family: var(--mono); font-size: 9px; color: var(--sub); align-self: center; margin-right: 4px; }
  .mlog-prog { width: 160px; }
}

/* ---------- ACCOUNT · SUBMIT · REVIEW ---------- */
.acct-btn { width: auto; min-width: 44px; padding: 0 12px; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; }
.acct-btn.login { color: var(--text); border-color: rgba(185,154,104,.5); }
.acct-btn.login:hover { background: rgba(185,154,104,.1); }
.acct-ini { font-family: var(--mincho); font-size: 16px; letter-spacing: 0; color: var(--gold); }
.acct-ini.big { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(185,154,104,.5); font-size: 28px; }
.acct-card { display: flex; align-items: center; gap: 20px; }
.acct-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.acct-link { padding: 24px; gap: 10px; }
.btn .ic { width: 18px; height: 18px; }
.chip.on-gold { border-color: var(--gold); color: var(--text); background: rgba(185,154,104,.12); }
.sub-form { display: flex; flex-direction: column; gap: 32px; }
.sub-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sub-field { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--bg2); }
.sub-field.wide { border: 1px solid var(--line); }
.sub-field .mono { font-size: 10px; letter-spacing: .2em; color: var(--sub); }
.sub-field input, .sub-field select, .sub-hero, .sub-kda input, .rv-why, select.rv-role { background: var(--bg); border: 1px solid var(--line); color: var(--text); min-height: 42px; padding: 0 12px; font-size: 15px; border-radius: 0; color-scheme: dark; }
.sub-field input:focus, .sub-field select:focus, .sub-hero:focus, .sub-kda input:focus, .rv-why:focus { outline: none; border-color: var(--gold); }
.sub-res { display: flex; gap: 12px; border: 0; padding: 0; margin: 0; flex-wrap: wrap; align-items: center; }
.sub-res legend { font-size: 10px; letter-spacing: .2em; color: var(--sub); margin-bottom: 10px; }
.sub-res label, .sub-me { cursor: pointer; }
.sub-res input, .sub-me input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sub-res span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--sub); transition: border-color .25s, color .25s, background .25s; }
.sub-res input:checked + span { border-color: var(--gold); color: var(--text); background: rgba(185,154,104,.12); }
.sub-res input:focus-visible + span, .sub-me input:focus-visible + span { outline: 1px solid var(--gold); outline-offset: 2px; }
.sub-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); gap: 32px; }
.sub-team { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sub-team small { font-family: var(--sans); font-size: 12px; margin-left: 8px; }
.sub-row { display: grid; grid-template-columns: 62px 44px minmax(0, 1fr) 62px 156px; align-items: center; gap: 10px; }
.sub-lane { font-size: 10px; letter-spacing: .14em; color: var(--sub); }
.sub-face .portrait.sm { width: 40px; height: 40px; }
.sub-face > .portrait.sm:empty { border: 1px dashed var(--line); background: transparent; }
.sub-hero { width: 100%; min-width: 0; }
.sub-hero.ok { border-color: rgba(185,154,104,.55); } .sub-hero.bad { border-color: var(--redtext); }
.sub-me span { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; width: 100%; border: 1px solid var(--line); font-size: 12px; color: var(--sub); }
.sub-me input:checked + span { border-color: var(--gold); background: var(--gold); color: var(--bg); }
.sub-kda { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.sub-kda input { width: 100%; min-width: 0; padding: 0 6px; text-align: center; -moz-appearance: textfield; }
.sub-kda input::-webkit-outer-spin-button, .sub-kda input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.sub-msg { font-size: 13px; color: var(--mid); line-height: 1.8; } .sub-msg.bad { color: var(--redtext); } .sub-msg.ok { color: var(--gold); }
.rv-team { display: flex; gap: 4px; }
.rv-h { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 4px 4px; border: 1px solid transparent; color: var(--sub); min-width: 50px; }
.rv-h .mono { font-size: 8px; letter-spacing: .12em; }
.rv-h.me { border-color: var(--gold); background: rgba(185,154,104,.1); color: var(--gold); }
.rv-h b { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-weight: 400; font-size: 8px; letter-spacing: .12em; background: var(--gold); color: var(--bg); padding: 1px 5px; white-space: nowrap; }
.rv-kda { font-size: 10px; color: var(--mid); }
.rv-team.enemy .rv-h { opacity: .7; }
.rv-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.rv-btns .chip { min-height: 36px; padding: 0 14px; }
.rv-why { min-height: 36px; font-size: 13px; width: 100%; }
.rv-row.rv-done { opacity: .55; }
.mlog-row.sub-mine, .mlog-row.rv-row { grid-template-columns: 190px auto 28px auto; }
@media (max-width: 760px) {
  .sub-row { grid-template-columns: 50px 40px minmax(0, 1fr) 54px; }
  .sub-row .sub-kda { grid-column: 3 / 5; }
  .sub-row .sub-me-pad { display: none; }
  .sub-row:has(.sub-me-pad) { grid-template-columns: 50px 40px minmax(0, 1fr); }
  .sub-row:has(.sub-me-pad) .sub-kda { grid-column: 3 / 4; }
  .mlog-row.sub-mine, .mlog-row.rv-row { grid-template-columns: 1fr; }
  .rv-team { justify-content: space-between; }
  .rv-h { min-width: 0; }
  .acct-btn span:not(.acct-ini) { display: none; }
}
@media (max-width: 480px) {
  .head-tools { gap: 6px; }
  .head-tools .icon-btn { width: 40px; height: 40px; }
  .head-tools .acct-btn { min-width: 40px; width: auto; padding: 0 9px; }
}
@media (max-width: 380px) { .head-tools a.icon-btn[href="#roulette"] { display: none; } }
@media (max-width: 760px) { .sub-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sub-meta > .sub-field:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.sub-field { min-width: 0; } .sub-field input, .sub-field select { width: 100%; min-width: 0; }
@media (max-width: 1000px) {
  .mlog-row, .mlog-row.sub-mine, .mlog-row.rv-row { grid-template-columns: 1fr; gap: 10px; }
  .mlog-info { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .mlog-vs { display: none; }
  .mlog-team.enemy::before, .rv-team.enemy::before { content: "VS"; font-family: var(--mono); font-size: 9px; color: var(--sub); align-self: center; margin-right: 4px; }
}
