@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./assets/HTxwL3I-JCGChYJ8VI-L6OO_au7B4873z3bWuQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./assets/HTxwL3I-JCGChYJ8VI-L6OO_au7B46r2z3bWuQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(./assets/HTxwL3I-JCGChYJ8VI-L6OO_au7B47b1z3bWuQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --background: #100d12;
  --panel: #1a151d;
  --surface: #231b27;
  --border: #362b3b;
  --muted: #e2d6e4;
  --fg: #fff8fe;
  --accent: #ffa385;
  --action: #fb886e;
  --success: #a7e5bc;
  --heading: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --text: system-ui, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; font: 500 16px/1.5 var(--text); color: var(--fg); background: radial-gradient(ellipse at 70% 0%, #261726 0%, transparent 42rem), var(--background); }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; }
button { cursor: pointer; color: var(--fg); border: 1px solid var(--border); background: #271f2c; border-radius: 7px; padding: 10px 15px; font-weight: 700; }
button:not(:disabled):hover { background: #382b3c; border-color: #725875; }
button:disabled { color: #c3b4c6; cursor: default; }
:focus-visible { outline: 2px solid #ffb79e; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 800; line-height: .99; }
p { color: var(--muted); }
.wrap, .top-inner { width: min(1152px, calc(100% - 64px)); margin-inline: auto; }
.top { border-bottom: 1px solid #362a3a; background: #151017ed; }
.top-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; font: 800 27px/.83 var(--heading); letter-spacing: .06em; white-space: nowrap; }
.brand-sub { display: block; color: var(--accent); margin-top: 6px; font: 700 12px/1.1 var(--text); letter-spacing: .09em; }
.brand-mark { height: 30px; display: inline-flex; align-items: center; gap: 3px; transform: skewX(-10deg); }
.brand-mark i { width: 4px; height: 22px; background: var(--action); clip-path: polygon(15% 4%, 100% 0, 88% 85%, 0 100%); }
.brand-mark i:nth-child(2n) { height: 27px; }
nav { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px clamp(10px,1.7vw,21px); align-self: stretch; }
nav a { position: relative; display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: .9375rem; text-decoration: none; padding: 10px 2px; white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: var(--fg); }
nav a[aria-current]::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--action); box-shadow: 0 0 13px #fb886e65; }
.eyebrow { color: var(--accent); font-size: .8125rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.workspace { margin-top: 35px; }
.secondary { margin-top: 50px; }
.section-heading { margin-bottom: 19px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-heading h1 { font-size: clamp(2.8rem, 6vw, 4.4rem); }
.section-heading p { margin-top: 7px; font-size: .93rem; }
.roles { display: flex; flex-shrink: 0; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 9px; background: #19141c; }
.role { background: transparent; border-color: transparent; padding: 7px 12px; color: var(--muted); font-size: .9rem; }
.role[aria-pressed="true"] { background: #38252e; border-color: #65434c; color: #ffbda8; }
.role-icon { display: inline-block; margin-right: 7px; color: var(--accent); }
.loadout, .feature { background: var(--panel); border: 1px solid var(--border); border-radius: 13px; }
.loadout { display: grid; grid-template-columns: minmax(220px,.8fr) 2.2fr; overflow: hidden; }
.character-spot { position: relative; display: grid; align-items: end; overflow: hidden; min-height: 260px; background: radial-gradient(ellipse at 50% 35%,#67404c,#2c202d 61%,#201722); border-right: 1px solid var(--border); }
.character-spot img { position: absolute; inset-inline: 0; bottom: 0; margin-inline: auto; width: min(100%,192px); height: auto; max-height: 100%; object-fit: contain; object-position: bottom; }
.character-caption { z-index: 1; padding: 38px 19px 14px; background: linear-gradient(transparent,#161017 64%); min-height: 90px; display: grid; align-content: end; gap: 3px; }
.character-caption strong { font-family: var(--heading); font-size: 2.1rem; line-height: .98; }
.perk-section { padding: 23px 26px; min-width: 0; }
.character-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 17px; }
.character-picker label { color: var(--muted); font-size: .87rem; font-weight: 700; }
.character-picker select { width: min(245px, 100%); color: var(--fg); background: #130f17; border: 1px solid #4a3b51; border-radius: 6px; padding: 7px 10px; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label-row h3 { font-size: 1.75rem; }
.perk-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.perk { display: flex; align-items: center; flex-direction: column; text-align: center; justify-content: flex-start; gap: 8px; padding: 8px 3px 10px; border: 1px solid var(--border); border-radius: 9px; background: #231b28; color: var(--fg); font-size: .9375rem; font-weight: 650; line-height: 1.25; min-height: 103px; overflow-wrap: anywhere; }
.perk-icon { position: relative; display: grid; place-items: center; width: 63px; height: 55px; isolation: isolate; }
.perk-icon::before { content: ""; position: absolute; z-index: -1; width: 34px; height: 34px; border: 1px solid #9f6dae; transform: rotate(45deg); background: #553660; border-radius: 3px; }
.perk-icon img { width: 100%; height: 100%; object-fit: contain; }
.perk.empty { color: var(--muted); }
.perk.locked { border-color: #9a747f; }
.perk-lock { margin-top: auto; padding: 4px 7px; min-height: 28px; max-width: 100%; font-size: .875rem; }
.perk-lock[aria-pressed="true"] { color: #ffbda8; background: #38252e; border-color: #9a747f; }
.gear-controls { min-width: 0; margin: 18px 0 0; padding: 10px 12px 12px; border: 1px solid var(--border); border-radius: 9px; }
.gear-controls legend { color: var(--muted); padding: 0 5px; font-size: .82rem; font-weight: 700; }
.gear-toggles { display: flex; flex-wrap: wrap; gap: 5px 17px; }
.gear-toggle { position: relative; min-height: 32px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--fg); font-size: .85rem; }
.gear-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gear-toggle-track { width: 31px; height: 18px; border: 1px solid #907c95; border-radius: 12px; background: #312737; display: flex; align-items: center; padding: 2px; }
.gear-toggle-track::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #e0d2e2; }
.gear-toggle input:checked + .gear-toggle-track { background: var(--action); border-color: var(--action); }
.gear-toggle input:checked + .gear-toggle-track::after { margin-left: auto; background: #28191e; }
.gear-toggle input:focus-visible + .gear-toggle-track { outline: 2px solid var(--accent); outline-offset: 3px; }
.gear-toggle input:disabled ~ span { color: #c3b4c6; cursor: default; }
.gear-hint { margin-top: 7px; font-size: .82rem; }
.gear-grid { list-style: none; padding: 0; margin: 9px 0 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(135px,100%),1fr)); gap: 6px; }
.gear-card { display: flex; align-items: center; gap: 7px; padding: 7px; min-width: 0; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); font-size: .8rem; line-height: 1.2; overflow-wrap: anywhere; }
.gear-card small { display: block; margin-bottom: 3px; color: var(--muted); }
.gear-icon { flex: 0 0 45px; height: 45px; border: 1px solid var(--rarity, #8a695b); border-radius: 5px; background-color: #1b161e; background-repeat: no-repeat; }
.gear-icon.uncommon { --rarity: #a48c4b; }
.gear-icon.rare { --rarity: #67a57a; }
.gear-icon.veryrare { --rarity: #a26ebd; }
.gear-icon.visceral { --rarity: #dc6371; }
.empty .perk-icon { color: #b9a2c1; }
.empty .perk-icon::before { border-color: #685171; background: #332637; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.primary { background: var(--action); color: #21131b; border-color: #ffad97; }
.primary:not(:disabled):hover { background: #ffab94; border-color: #ffd0c3; }
.primary span { margin-right: 4px; font-size: 1.15em; line-height: 1; }
.roster-tools, .search-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.roster-tools { justify-content: space-between; padding: 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); margin-bottom: 15px; }
.search-fields input, .search-fields select { color: var(--fg); background: #130f17; border: 1px solid #4a3b51; border-radius: 6px; padding: 8px 10px; }
.search-fields input { width: min(245px, 100%); }
.search-fields input::placeholder { color: #b2a4b7; }
.progress { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: .87rem; color: var(--muted); padding: 4px; }
progress { width: 115px; height: 9px; accent-color: var(--action); }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(122px,1fr)); gap: 10px; }
.roster-card { text-align: left; display: grid; align-content: start; padding: 0; overflow: hidden; background: var(--panel); }
.roster-image { position: relative; background: radial-gradient(ellipse at 50% 35%,#53354e,#2a202e 68%); display: block; aspect-ratio: 1; overflow: hidden; }
.roster-image img { width: 100%; height: 100%; object-fit: contain; }
.roster-name { padding: 9px 8px; font-size: .9375rem; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.tick { display: none; position: absolute; top: 6px; right: 6px; background: var(--success); color: #15291e; border-radius: 50%; width: 24px; height: 24px; place-items: center; font: 900 16px/1 var(--text); }
[aria-pressed="true"] .tick { display: grid; }
.roster-card[aria-pressed="true"] { border-color: #76b58b; }
.roster-card[aria-pressed="true"] .roster-image { background: radial-gradient(ellipse at 50% 35%,#345746,#23382e 68%); }
.empty-message { padding: 12px 0; color: var(--muted); }
.feature { padding: 22px; }
.challenge-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 15px; align-items: start; }
.challenge-feature { min-height: 284px; position: relative; overflow: hidden; display: grid; align-items: end; isolation: isolate; }
.assignment-art { position: absolute; z-index: -1; right: 0; top: 0; bottom: 0; width: 60%; background: radial-gradient(ellipse at 66% 50%,#624257,transparent 70%); }
.assignment-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,var(--panel),transparent 62%),linear-gradient(0deg,var(--panel),transparent 42%); }
.assignment-art img { position: absolute; right: 0; bottom: 0; width: min(100%,192px); height: auto; max-height: 100%; object-fit: contain; object-position: bottom right; }
.feature-copy h2 { font-size: clamp(2.4rem, 5vw, 3.35rem); margin: 4px 0 11px; }
.feature-copy > p:not(.eyebrow) { max-width: 390px; color: #e1d6e2; }
.history h2, .bingo-aside h2 { font-size: 2.25rem; }
.history .label-row > span { color: var(--success); font-size: .85rem; white-space: nowrap; }
.history-list { padding: 0; margin: 14px 0 0; list-style: none; display: grid; gap: 7px; }
.history-list li { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 8px; padding: 7px; background: var(--surface); border-radius: 7px; }
.history-list li img { width: 42px; height: 42px; object-fit: contain; }
.history-list li div { display: grid; line-height: 1.35; }
.history-list li div span { color: var(--muted); font-size: .875rem; }
.result { font-size: .72rem; font-weight: 700; color: #ffc9b9; }
.result.completed { color: var(--success); }
.bingo-layout { display: grid; grid-template-columns: minmax(0,2.4fr) minmax(185px,1fr); gap: 15px; align-items: start; }
.bingo-letters, .bingo-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; }
.bingo-letters { margin: 0 0 7px; color: var(--accent); text-align: center; font: 800 1.35rem/1 var(--heading); }
.bingo-cell { position: relative; display: grid; align-content: center; justify-items: center; gap: 3px; overflow-wrap: anywhere; min-width: 0; min-height: 95px; font-size: clamp(.8125rem,1.25vw,.9375rem); line-height: 1.22; padding: 12px 6px; background: #261f2c; }
.bingo-cell[aria-pressed="true"] { padding-top: 22px; background: #2a4135; border-color: #6bab82; }
.bingo-cell.win { background: #365948; border-color: #a1d8b4; }
.bingo-cell:disabled { opacity: 1; }
.bingo-cell .tick { width: 17px; height: 17px; font-size: 11px; top: 3px; right: 4px; }
.free-portrait, .bingo-perk { width: 34px; height: 34px; object-fit: contain; }
.bingo-stats { margin-top: 17px; display: grid; color: var(--muted); font-size: .88rem; }
.bingo-stats strong { color: var(--accent); font: 800 2.5rem/1 var(--heading); }
.bingo-stats small { color: var(--muted); font-size: 1.4rem; }
.muted { margin-top: 12px; font-size: .86rem; }
.device-status { margin: 12px 0 33px; color: var(--muted); font-size: .875rem; }
.footer { border-top: 1px solid var(--border); color: var(--muted); padding-block: 16px 28px; display: flex; flex-wrap: wrap; gap: 7px 16px; font-size: .875rem; }
.footer span:first-child { color: var(--fg); font-weight: 700; }
.footer a { text-underline-offset: 3px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: 6px; left: 10px; z-index: 2; background: var(--panel); padding: 7px; }
.home-page, .about-grid { margin-bottom: 34px; }
.home-intro { max-width: 720px; margin-bottom: 25px; }
.home-intro h1 { font-size: clamp(2.7rem,5vw,4.5rem); }
.home-intro p { font-size: 1rem; line-height: 1.65; margin-top: 10px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(245px,100%),1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tool-card { display: block; height: 100%; text-decoration: none; }
.tool-card h2, .about-panel h2 { font-size: 1.95rem; }
.tool-card p { margin-top: 6px; font-size: .91rem; }
.tool-card:hover, .tool-card:focus-visible { border-color: #986b72; }
.tool-card:hover h2, .tool-card:focus-visible h2 { color: var(--accent); }
.home-about { margin-top: 18px; font-size: .9rem; }
.home-about a, .about-twitch { color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
.about-grid { display: grid; grid-template-columns: 1.12fr 1fr; align-items: start; gap: 15px; }
.about-panel p { margin-top: 11px; line-height: 1.65; }
.about-panel strong { color: var(--fg); }
.about-twitch { display: inline-block; margin-top: 16px; }
.suggestion-form:not([hidden]) { display: grid; gap: 7px; margin-top: 17px; }
.suggestion-form label { font-size: .9rem; font-weight: 700; }
.suggestion-form label span { color: var(--muted); font-weight: 500; }
.suggestion-form input, .suggestion-form textarea { width: 100%; min-width: 0; color: var(--fg); background: #130f17; border: 1px solid #64516a; border-radius: 6px; padding: 9px 10px; font: inherit; }
.suggestion-form textarea { resize: vertical; }
.suggestion-form label:not(:first-child) { margin-top: 6px; }
.suggestion-form button { justify-self: start; margin-top: 5px; }
.suggestion-status:empty { margin: 0; }
.suggestion-status { color: var(--accent); }
@media (max-width: 810px) {
  .wrap, .top-inner { width: calc(100% - 38px); }
  nav { gap: 6px 15px; }
  .challenge-layout { grid-template-columns: 1fr 1fr; }
  .feature { padding: 15px; }
}
@media (max-width: 640px) {
  .top-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 13px; }
  nav { width: 100%; justify-content: space-between; gap: 4px 8px; }
  nav a { font-size: .875rem; }
  .wrap, .top-inner { width: calc(100% - 24px); }
  .workspace, .secondary { margin-top: 27px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .loadout, .challenge-layout, .bingo-layout, .about-grid { grid-template-columns: 1fr; }
  .character-spot { min-height: 205px; border-right: 0; border-bottom: 1px solid var(--border); }
  .character-spot img { inset-inline: auto 0; margin-inline: 0; }
  .perk-section { padding: 17px 12px; }
  .perk-grid { gap: 5px; }
  .perk-icon { width: min(55px, 100%); }
  .roster-grid { grid-template-columns: repeat(auto-fill,minmax(89px,1fr)); }
  .bingo-board { padding: 8px; }
  .bingo-grid { gap: 3px; }
  .bingo-cell { padding-inline: 3px; font-size: .8125rem; min-height: 79px; }
}
