@font-face {
  font-family: 'Barlow Condensed';
  src: url('./barlow-condensed-900.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./inter-latin.woff2') format('woff2');
  font-weight: 400 850;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #100e18;
  --panel: #191525;
  --panel-deep: #14111e;
  --border: #332946;
  --text: #f7f3ff;
  --muted: #bbb0cd;
  --purple: #c5a5ff;
  --violet: #9c6dff;
  --heading: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; min-width: 290px; font: 400 15px/1.56 var(--body); color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button, select, input, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #f2bd88; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong, b { line-height: 1.19; }
h1, h2 { letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.06rem); }
.shell { width: min(calc(100% - 64px), 1190px); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { display: block; padding: 10px 16px; width: fit-content; margin: 10px; }

.header { background: #13101c; border-bottom: 1px solid #2c233d; }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 850 24px/1 var(--body); letter-spacing: -.075em; white-space: nowrap; }
.brand-accent { color: var(--purple); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #1b1035; background: #c1a0ff; font: 900 24px/1 var(--body); letter-spacing: 0; }
nav { display: flex; align-items: center; gap: 6px; }
nav a { padding: 9px 13px; border-radius: 8px; color: var(--muted); font-weight: 650; white-space: nowrap; }
nav a:hover, nav a[aria-current] { background: #271d39; color: #eadcff; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 43px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; text-align: center; font-weight: 750; line-height: 1.25; }
.button.primary { background: #c39eff; color: #1a1030; border-color: #c39eff; }
.button.primary:hover:not(:disabled) { background: #dbc1ff; }
.button.alternate, .button.roblox { background: #21192f; border-color: #493761; color: #f3eaff; }
.button.alternate:hover:not(:disabled), .button.roblox:hover { border-color: #c39eff; background: #302146; }
.button.roblox { background: transparent; white-space: nowrap; font-size: .88rem; }
.reset-button { background: transparent; color: var(--muted); }
.reset-button:hover:not(:disabled) { color: var(--text); background: #262036; }

.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 400px; overflow: hidden; margin-top: 32px; border: 1px solid #3f2d53; border-radius: 18px; background: #1a1229; }
.hero-art { position: absolute; inset: 0 0 0 auto; z-index: -2; display: block; width: 77%; height: 100%; object-fit: cover; object-position: 50% 53%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #181124 13%, #181124 28%, #1a1128d6 39%, #19112645 61%, transparent 76%); }
.hero-text { padding: 42px 46px 48px; max-width: 560px; }
.eyebrow { color: var(--purple); font-size: .73rem; font-weight: 800; letter-spacing: .13em; }
h1 { margin-top: 10px; font: 900 clamp(3.35rem, 8vw, 6.3rem)/.92 var(--heading); text-transform: uppercase; letter-spacing: -.022em; }
h1 em { color: #c7a3ff; font-style: normal; }
.intro { font-size: clamp(1rem, 1.9vw, 1.16rem); color: #d7cde9; line-height: 1.55; margin-top: 20px; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }

.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-block: 16px 38px; }
.picks a { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.picks a:hover { border-color: var(--purple); background: #211832; }
.picks small, .picks strong { display: block; }
.picks small { color: var(--muted); margin-bottom: 4px; font-size: .65rem; font-weight: 800; letter-spacing: .095em; }
.pick-icon { flex: 0 0 34px; border-radius: 8px; text-align: center; background: #33204b; color: #dfbaff; font-size: 21px; line-height: 34px; }
.pick-red { background: #422330; color: #ffa1b5; }
.pick-green { background: #1d3736; color: #93e8bd; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 284px); gap: 24px; align-items: start; }
.section-heading { margin: 0 0 15px; }
.section-heading p { color: var(--muted); font-size: .86rem; margin-top: 5px; }
.rank-toolbar, .rank-list, .sidebar { display: grid; gap: 10px; }
.rank-toolbar { margin-bottom: 14px; }
.search-label { display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--purple); border: 1px solid var(--border); border-radius: 9px; background: var(--panel); }
.search-label span[aria-hidden] { font-size: 22px; }
.search-label:focus-within { border-color: var(--purple); }
.search-label input { width: 100%; min-height: 43px; border: 0; background: transparent; color: var(--text); }
.search-label input:focus { outline: 0; }
.search-label input::placeholder { color: var(--muted); }
.mode-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.mode-filters button { min-height: 36px; padding: 5px 11px; border-radius: 7px; border: 1px solid var(--border); color: var(--muted); background: var(--panel); font-size: .83rem; font-weight: 700; }
.mode-filters button:hover { color: var(--text); border-color: #8664ac; }
.mode-filters button[aria-pressed="true"] { color: #ead9ff; background: #302048; border-color: #8158b5; }

.tier-s { --tier: #ff9fb8; --tier-bg: #3b2135; }
.tier-a { --tier: #ffd499; --tier-bg: #3f2b28; }
.tier-b { --tier: #c0a2ff; --tier-bg: #302345; }
.tier-c { --tier: #96dbc9; --tier-bg: #193435; }
.tier-u { --tier: #bbb0cd; --tier-bg: #292433; }
.rank-group { display: grid; grid-template-columns: 68px minmax(0, 1fr); border: 1px solid var(--border); border-radius: 12px; background: var(--panel); overflow: clip; }
.tier-stamp, .maker-row h2 { text-align: center; color: var(--tier); background: var(--tier-bg); }
.tier-stamp { padding-top: 13px; border-right: 1px solid var(--border); font: 900 2.3rem/1 var(--heading); }
.rank-group-content { min-width: 0; }
.rank-group h3 { padding: 12px 14px; color: var(--tier); font-size: .93rem; }
.rank-group h3 span { color: var(--muted); margin-left: 7px; font-size: .77rem; font-weight: 550; }
.stand-row { border-top: 1px solid #31283f; }
.stand-row summary { display: grid; grid-template-columns: minmax(0, 1fr) 86px minmax(120px, .6fr) 18px; align-items: center; gap: 8px; cursor: pointer; padding: 8px 13px; min-height: 42px; list-style: none; }
.stand-row summary::-webkit-details-marker { display: none; }
.stand-row summary::after { content: '+'; text-align: center; color: var(--purple); font-size: 1.05rem; }
.stand-row details[open] summary::after { content: '−'; }
.stand-row summary:hover, .stand-row details[open] { background: #21192f; }
.stand-row summary:focus-visible { outline-offset: -3px; }
.stand-name { color: var(--text); font-weight: 720; line-height: 1.25; }
.rarity { justify-self: start; font-size: .68rem; padding: 2px 6px; border-radius: 4px; background: #2e2541; color: #d9c8fa; }
.mode-label { color: var(--muted); font-size: .76rem; }
.stand-note { color: #d8cde8; padding: 1px 14px 12px; max-width: 72ch; font-size: .88rem; }
.empty { border: 1px dashed var(--border); color: var(--muted); padding: 13px; margin-bottom: 14px; border-radius: 8px; }

.panel { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.sidebar { padding-top: 4px; gap: 13px; }
.sidebar-card { padding: 18px; }
.sidebar-card:first-child { background: linear-gradient(135deg, #2d1c45, #181324); border-color: #543c75; }
.sidebar-card h2 { font-size: 1.3rem; }
.sidebar-card p:not(.eyebrow) { color: var(--muted); margin-block: 8px 14px; font-size: .9rem; }
.sidebar-card .eyebrow { margin-bottom: 7px; }
.sidebar-card .button { width: 100%; }
.text-link { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: #f4daff; }
.editorial { padding: clamp(16px, 4vw, 26px); margin-block: 20px; }
.editorial p { color: var(--muted); max-width: 83ch; margin-top: 9px; }
.editorial section + section { margin-top: 15px; }
.editorial h3 { margin-top: 15px; font-size: 1rem; }
.editorial a, .footer-links a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.editorial a:hover, .footer-links a:hover { color: #fff; }
.source-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer { margin-top: 42px; background: #13101c; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 20px; padding-block: 24px; }
.footer-inner p { color: var(--muted); font-size: .83rem; margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: .84rem; }

.tool-hero { padding-block: 38px 25px; }
.tool-hero h1 { font-size: clamp(3rem, 7vw, 5.3rem); }
.tool-hero .intro { max-width: 65ch; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(230px, 1fr); gap: 15px; }
.game-panel, .game-history { padding: clamp(14px, 3vw, 25px); }
.game-panel { background: radial-gradient(ellipse at 50% 46%, #291b40, #181425 72%); }
.budget { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; color: var(--purple); }
.budget span { font-size: .74rem; font-weight: 800; letter-spacing: .1em; }
.budget b { font-size: 1.25rem; }
.budget progress { grid-column: 1 / -1; width: 100%; height: 7px; accent-color: #bf96ff; border: 0; border-radius: 99px; overflow: hidden; }
.budget progress::-webkit-progress-bar { background: #332747; }
.budget progress::-webkit-progress-value { background: #bf96ff; }
.roll-reveal { text-align: center; min-height: 235px; display: grid; align-content: center; justify-items: center; padding-block: 20px; }
.reveal-icon { font-size: 3rem; line-height: 1; color: #c29bff; text-shadow: 0 0 24px #a46de1; }
.roll-reveal[data-rarity="pinnacle"] .reveal-icon { color: #ffdc94; text-shadow: 0 0 28px #ff9f4d; }
.roll-reveal p { color: var(--muted); margin-top: 7px; }
.roll-reveal .eyebrow { color: var(--purple); }
.roll-reveal[data-rarity="pinnacle"] .eyebrow { color: #ffdc94; }
.roll-reveal a { margin-top: 8px; font-size: .88rem; }
.roll-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.roll-buttons .button { display: flex; flex-direction: column; gap: 3px; }
.roll-buttons small { font-weight: 500; }
.game-panel .reset-button { display: flex; margin: 8px auto 0; }
.game-history h2 { margin-bottom: 12px; font-size: 1.35rem; }
.game-history p, .game-history li span { color: var(--muted); }
.game-history ol { margin: 0; padding-inline-start: 28px; max-height: 360px; overflow: auto; }
.game-history li { padding: 7px 1px; border-bottom: 1px solid var(--border); }
.game-history li span { display: block; margin-top: 3px; font-size: .78rem; }
.table-wrap { overflow-x: auto; margin-block: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; text-align: left; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--border); }

.maker { display: grid; gap: 10px; }
.maker-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.maker-actions p { color: var(--muted); font-size: .86rem; }
.maker-actions label { display: flex; align-items: center; gap: 8px; flex: 1 1 100%; }
.maker-actions input { min-width: 0; flex: 1; border: 1px solid var(--border); padding: 5px; border-radius: 5px; }
.maker-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); border: 1px solid var(--border); min-height: 78px; border-radius: 10px; background: var(--panel); overflow: clip; }
.maker-row h2 { display: grid; place-items: center; font-size: 1.45rem; padding-inline: 4px; }
.maker-row.tier-u h2 { font-size: .92rem; }
.maker-cards { display: flex; flex-wrap: wrap; align-content: center; align-items: stretch; gap: 7px; padding: 8px; }
.maker-card { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: var(--text); background: #261e37; border: 1px solid #4a3a61; border-radius: 7px; padding: 4px 5px 4px 8px; font-size: .8rem; font-weight: 650; cursor: grab; }
.maker-card > span::before { content: '⠿'; color: var(--purple); margin-right: 5px; }
.maker-card select { cursor: pointer; max-width: 82px; background: var(--panel-deep); border: 1px solid #4a3a61; border-radius: 4px; padding-block: 3px; color: var(--text); }

@media (max-width: 900px) {
  .shell { width: calc(100% - 40px); }
  .home-grid { grid-template-columns: minmax(0, 1fr) 218px; gap: 12px; }
  .rank-group { grid-template-columns: 49px minmax(0, 1fr); }
  .stand-row summary { grid-template-columns: minmax(0, 1fr) 70px minmax(68px, .7fr) 13px; }
}
@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; gap: 8px; min-height: unset; padding-block: 11px 7px; }
  .header nav { order: 3; width: 100%; gap: 2px; flex-wrap: wrap; }
  .header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 9px; font-size: .84rem; }
  .button.roblox { padding-inline: 9px; min-height: 36px; font-size: .75rem; }
  .brand { font-size: 21px; }
  .brand-mark { width: 29px; height: 29px; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 28px); }
  .hero { min-height: 355px; margin-top: 17px; }
  .hero-art { width: 100%; object-position: 61%; }
  .hero::before { background: linear-gradient(90deg, #171020f7 0%, #171020df 32%, #17102094 63%, #17102038 100%); }
  .hero-text { padding: 25px 17px; }
  .hero-actions .button { font-size: .83rem; padding-inline: 9px; }
  .picks { grid-template-columns: 1fr; gap: 6px; margin-block: 10px 24px; }
  .picks a { padding: 8px 10px; }
  .picks small { margin-bottom: 1px; }
  .home-grid, .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .game-history ol { max-height: 250px; }
  .tool-hero { padding-block: 25px 19px; }
}
@media (max-width: 430px) {
  .rank-group { grid-template-columns: 37px minmax(0, 1fr); }
  .tier-stamp { font-size: 1.68rem; }
  .stand-row summary { grid-template-columns: minmax(0, 1fr) auto 12px; column-gap: 6px; row-gap: 2px; padding-inline: 8px; }
  .stand-name { font-size: .88rem; }
  .mode-label { grid-column: 1; grid-row: 2; font-size: .69rem; }
  .stand-row summary::after { grid-column: 3; grid-row: 1 / 3; }
  .maker-row { grid-template-columns: 63px minmax(0, 1fr); }
}

.hero-text .intro a, .byline a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.hero .byline, .tool-hero .byline { margin-top: 10px; }
.byline { color: #d7cde9; font-size: .86rem; }
.s-tier-list { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-block: 12px; padding-inline-start: 18px; }
.guide-links { margin-top: 10px; }
.guide-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--purple); text-decoration: underline; }
.stand-profile-link { display: inline-block; margin: 0 14px 10px; padding-block: 3px; font-size: .88rem; }
.breadcrumbs { margin-top: 15px; color: var(--muted); font-size: .84rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: '/'; padding-right: 6px; color: var(--purple); }
.breadcrumbs a { padding: 3px; color: var(--purple); text-decoration: underline; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.recommendation { display: block; margin-top: 4px; color: var(--muted); font-size: .87rem; }
.ability-list dt { font-weight: 720; }
.ability-list dd { margin: 3px 0 12px; color: var(--muted); }
.editorial li { color: var(--muted); }

@media (max-width: 700px) {
  .mode-filters button { min-height: 44px; display: inline-flex; align-items: center; }
  .maker-card select { min-height: 36px; }
}
