/* Deliberate cascade: tool rules cannot accidentally repaint shared components. */
@layer foundation, tools, components, surfaces, typography, utilities;
@layer foundation {
  :root {
    --accent: #d7f690;
    --accent-hover: #e4ffaa;
    --ink: #f4f2eb;
    --muted: #aaa9a1;
    --surface: #191b1e;
    --panel: #191b1e;
    --line: #ffffff16;
    --page: #121315;
    --font-body: "Google Sans", system-ui, sans-serif;
    --font-display: "Luckiest Guy", Impact, sans-serif;
    color-scheme: dark;
  }
}
@layer utilities {
  [hidden] {
    display: none;
  }
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }
  #player-heading:focus {
    outline: none;
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation: none;
      transition: none;
      scroll-behavior: auto;
    }
  }
}
/* Common layout and responsive structure. Visual components live in components.css. */
@layer foundation {
  * {
    box-sizing: border-box;
  }
  body {
    margin: 0;
    background: #080b10;
    color: var(--ink);
    font-family: "Google Sans", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
  }
  a {
    color: inherit;
  }
  button, input, select {
    font: inherit;
  }
  button, a, input, select {
    touch-action: manipulation;
  }
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid #bdc0c5;
    outline-offset: 4px;
  }
  .site-header {
    background: rgba(8, 11, 16, 0.9607843137);
    border-bottom: 1px solid rgba(164, 167, 172, 0.3019607843);
    position: relative;
    z-index: 5;
  }
  .site-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #a4a7ac, #979a9f, rgba(56, 189, 248, 0.2));
  }
  .header-inner {
    max-width: 1344px;
    padding: 18px 32px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 88px;
  }
  .brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
  }
  .brand img {
    width: 200px;
    height: auto;
    display: block;
  }
  .site-header nav {
    margin-left: auto;
    display: flex;
    gap: 6px;
  }
  .site-header nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: #b9b8c6;
  }
  .site-header nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.0235294118);
  }
  .site-header nav a[aria-current] {
    color: #fff;
    background: linear-gradient(135deg, rgba(164, 167, 172, 0.1803921569), rgba(151, 154, 159, 0.1411764706));
    border-color: rgba(164, 167, 172, 0.3764705882);
    box-shadow: 0 0 22px rgba(164, 167, 172, 0.0705882353);
  }
  .support-link {
    font-size: 11px;
    color: #b5b8bd;
    text-decoration: none;
    white-space: nowrap;
  }
  .support-link strong {
    color: #d1d4d9;
  }
  .tool-hero {
    position: relative;
    isolation: isolate;
    min-height: 250px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #13161b;
  }
  .tool-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 43%;
    z-index: -2;
  }
  .tool-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, #080b10 0%, rgba(8, 11, 16, 0.1450980392) 80%), linear-gradient(90deg, rgba(8, 11, 16, 0.8509803922), rgba(8, 11, 16, 0.5333333333) 48%, rgba(8, 11, 16, 0.0941176471));
  }
  .tool-hero-content {
    width: 100%;
    max-width: 1344px;
    margin: auto;
    padding: 44px 32px 50px;
  }
  .tool-hero .eyebrow {
    display: none;
  }
  .tool-hero h1 {
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.3px;
    margin: 0 0 16px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.3333333333);
  }
  .tool-hero-description {
    font-size: 14px;
    line-height: 1.7;
    color: #dad6e5;
    max-width: 560px;
    margin: 0;
  }
  .tool-hero-credit {
    position: absolute;
    bottom: 10px;
    right: 24px;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.3333333333);
  }
  .eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #bdc0c5;
    text-transform: uppercase;
  }
  .site-footer {
    max-width: 1280px;
    margin: 64px auto 0;
    padding: 28px 0 32px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 28px;
    color: #888b90;
    font-size: 11px;
  }
  .site-footer p {
    margin: 5px 0;
  }
  .footer-brand {
    color: #bec1c6;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
  }
  .site-footer > div:last-child {
    text-align: right;
  }
  @media (max-width: 900px) {
    .header-inner {
      flex-wrap: wrap;
      gap: 12px 20px;
      padding: 16px 24px;
    }
    .brand img {
      width: 170px;
    }
    .support-link {
      display: none;
    }
    .tool-hero-content {
      padding: 36px 24px 44px;
    }
    .site-footer {
      margin: 48px 24px 0;
    }
  }
  @media (max-width: 540px) {
    .header-inner {
      padding: 16px 20px;
    }
    .brand img {
      width: 150px;
    }
    .site-header nav {
      width: 100%;
      margin: 0;
      gap: 6px;
    }
    .site-header nav a {
      padding: 8px 14px;
      font-size: 12px;
    }
    .tool-hero {
      min-height: 220px;
    }
    .tool-hero-content {
      padding: 34px 20px 42px;
    }
    .tool-hero-description {
      font-size: 13px;
    }
    .site-footer {
      display: block;
      margin: 40px 20px 0;
    }
    .site-footer > div:last-child {
      text-align: left;
      margin-top: 20px;
    }
  }
  .logo-word {
    display: inline-block;
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 0.1px;
    color: #fff;
    transform: skew(-5deg);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5333333333), 0 0 24px rgba(164, 167, 172, 0.168627451);
  }
  .logo-domain {
    background: linear-gradient(120deg, #a4a7ac, #979a9f);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
  }
  @media (max-width: 540px) {
    .logo-word {
      font-size: 27px;
    }
  }
  .tracker, .pirate-game {
    width: 100%;
    max-width: 1344px;
    margin: 24px auto 0;
    padding: 0 32px;
    color: #eef0f8;
  }
  .tracker-toolbar {
    align-items: center;
  }
  .tracker-toolbar label {
    min-width: 260px;
  }
  .save-note {
    color: #a8abb0;
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.3333333333);
  }
  .storage-note {
    color: #7f8287;
    font-size: 11px;
  }
  #notice {
    font-size: 11px;
    color: #a2a5aa;
    margin: 10px 0;
    min-height: 16px;
  }
  .stats {
    gap: 16px;
    margin: 20px 0;
  }
  .stats > div {
    background: linear-gradient(180deg, #171a1f, #101317);
    border: 1px solid rgba(178, 181, 186, 0.1607843137);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.0196078431);
    padding: 20px 24px;
  }
  .stats strong {
    font-size: 26px;
    margin: 8px 0 12px;
  }
  .stats span {
    font-size: 10px;
    color: #a1a4a9;
  }
  .stats progress::-webkit-progress-value {
    background: linear-gradient(90deg, #e5f24a, #c8df36);
  }
  .stats > div:last-child progress::-webkit-progress-value {
    background: #e5b95e;
  }
  .stats progress {
    accent-color: #e5f24a;
  }
  .filters {
    background: #111419;
    border: 1px solid rgba(178, 181, 186, 0.1607843137);
    border-radius: 12px;
    padding: 16px;
    gap: 12px;
    margin-top: 22px;
  }
  .filters label {
    font-size: 11px;
  }
  .filters button {
    font-size: 11px;
  }
  .tracker input, .tracker select {
    background-color: #080b10;
    border-color: rgba(178, 181, 186, 0.1882352941);
  }
  .tracker button, .file-button {
    border-color: rgba(178, 181, 186, 0.1882352941);
    background-color: #1b1e23;
  }
  .tracker button:hover {
    border-color: rgba(229, 242, 74, 0.6);
  }
  .tracker #compact[aria-pressed=true] {
    color: #e2e5ea;
    border-color: rgba(229, 242, 74, 0.4);
    background: rgba(229, 242, 74, 0.1098039216);
  }
  .checklist-heading {
    margin: 26px 0 14px;
  }
  .checklist-heading h2 {
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: 22px;
    font-weight: 400;
  }
  .checklist-heading span {
    color: #7e8186;
  }
  .sprite-card {
    border: 1px solid rgba(178, 181, 186, 0.1607843137);
    background: linear-gradient(180deg, #171a1f, #101317);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.0196078431);
  }
  .compact .sprite-card {
    background: linear-gradient(180deg, #171a1f, #101317);
  }
  .variant-button {
    background: #191c21;
  }
  .variant-button[data-state="1"] {
    border-color: rgba(229, 242, 74, 0.4784313725);
    background: rgba(229, 242, 74, 0.0745098039);
  }
  .variant-button[data-state="1"] .state-label {
    color: #d0d3d8;
  }
  .sprite-heading h3 {
    font-family: "Google Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
  }
  .sprite-info-button {
    background: transparent;
  }
  .compact .sprite-info h3 {
    font-size: 15px;
  }
  .backup-tools {
    border-color: rgba(178, 181, 186, 0.1607843137);
  }
  .tracker .site-footer a {
    color: inherit;
  }
  #sprite-info-dialog {
    background: #14171c;
    border-color: rgba(229, 242, 74, 0.3019607843);
  }
  .sprite-rarity strong {
    color: #dab5ff;
    border-color: rgba(229, 242, 74, 0.3019607843);
  }
  .pirate-game {
    max-width: 960px;
  }
  .pirate-stage {
    background: radial-gradient(ellipse at top, rgba(229, 242, 74, 0.0862745098), transparent 65%), linear-gradient(180deg, #171a1f, #101317);
    border-color: rgba(178, 181, 186, 0.1607843137);
    padding: 36px 24px;
    border-radius: 16px;
  }
  .pirate-count {
    font-family: "Google Sans", sans-serif;
    font-weight: 800;
    font-size: clamp(64px, 7vw, 88px);
    letter-spacing: -4px;
  }
  .pirate-status {
    color: #a1a4a9;
  }
  .pirate-chest {
    color: #dcb46d;
  }
  .pirate-actions #auto, .pirate-actions #reset.search-finished {
    background: linear-gradient(135deg, #d6e63e, #909398);
    border: 1px solid rgba(229, 242, 74, 0.4);
    color: #fff;
    padding: 13px 24px;
    font-size: 14px;
    box-shadow: 0 6px 24px rgba(229, 242, 74, 0.1490196078);
  }
  .pirate-actions #auto:hover {
    filter: brightness(1.12);
  }
  .pirate-batch {
    margin-top: 18px;
  }
  .pirate-prize {
    border-color: rgba(178, 181, 186, 0.1607843137);
    background: linear-gradient(180deg, #171a1f, #101317);
  }
  .pirate-help {
    border-top: 1px solid rgba(178, 181, 186, 0.1607843137);
    padding-top: 24px;
    margin-top: 32px;
    color: #9aa3b8;
  }
  .pirate-help h2 {
    color: #eee9f6;
  }
  .pirate-help a {
    color: #d1d4d9;
  }
  .home-main {
    max-width: 1344px;
    padding: 34px 32px 0;
    margin: auto;
  }
  .home-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
  }
  .home-heading h2 {
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: 26px;
    font-weight: 400;
    margin: 0;
  }
  .home-heading p {
    color: #909398;
    font-size: 12px;
    margin: 0;
  }
  .tool-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(178, 181, 186, 0.2078431373);
    border-radius: 16px;
    background: linear-gradient(180deg, #171a1f, #101317);
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  }
  .tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 242, 74, 0.5333333333);
    box-shadow: 0 12px 40px rgba(229, 242, 74, 0.0823529412);
  }
  .tool-card-art {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #1b1e23;
  }
  .tool-card-art > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
  }
  .tool-card:hover .tool-card-art > img {
    transform: scale(1.03);
  }
  .tool-card-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #171a1f, transparent 85%);
  }
  .tool-card-badge {
    position: absolute;
    top: 18px;
    left: 20px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    border: 1px solid rgba(255, 255, 255, 0.1333333333);
    padding: 6px 9px;
    border-radius: 6px;
    background: rgba(12, 15, 20, 0.7490196078);
    color: #e8ebf0;
    z-index: 1;
  }
  .tool-card-body {
    padding: 8px 26px 26px;
    display: flex;
    flex: 1;
    flex-direction: column;
  }
  .tool-card h3 {
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-weight: 400;
    font-size: 29px;
    letter-spacing: 0.3px;
    margin: 0 0 12px;
  }
  .tool-card p {
    font-size: 13px;
    line-height: 1.8;
    color: #a8abb0;
    margin: 0 0 26px;
    max-width: none;
  }
  .tool-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
  }
  .tool-card-bottom span {
    font-size: 10px;
    color: #84878c;
  }
  .tool-card-bottom strong {
    font-size: 12px;
    color: #d6d9de;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .tool-card-bottom b {
    font-size: 22px;
    font-weight: 400;
  }
  @media (max-width: 900px) {
    .tracker, .pirate-game {
      padding: 0 24px;
    }
    .home-main {
      padding: 28px 24px 0;
    }
    .site-footer {
      padding-inline: 0;
    }
    .tool-card-art {
      height: 170px;
    }
  }
  @media (max-width: 600px) {
    .tracker, .pirate-game {
      padding: 0 20px;
    }
    .tool-cards {
      grid-template-columns: 1fr;
      gap: 18px;
    }
    .home-main {
      padding: 24px 20px 0;
    }
    .home-heading {
      display: block;
    }
    .home-heading p {
      margin-top: 8px;
    }
    .tool-card-art {
      height: 180px;
    }
    .home-note {
      align-items: start;
      flex-direction: column;
      gap: 12px;
    }
    .tracker-toolbar {
      align-items: start;
    }
    .tracker-toolbar label {
      width: 100%;
      min-width: 0;
    }
    .stats > div {
      padding: 16px;
    }
    .stats strong {
      font-size: 23px;
    }
    .filters {
      padding: 12px;
    }
    .tool-card-body {
      padding: 8px 22px 24px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .tool-card, .tool-card-art > img {
      transition: none;
    }
    .tool-card:hover {
      transform: none;
    }
  }
  body {
    font-size: 16px;
    background: #06090e;
  }
  .header-inner {
    min-height: 92px;
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .logo-word {
    font-size: 36px;
  }
  .site-header nav a {
    font-size: 16px;
    padding: 11px 18px;
  }
  .support-link {
    font-size: 13px;
  }
  .tool-hero {
    min-height: 230px;
    background: #06090e;
    align-items: stretch;
  }
  .tool-hero-image {
    object-position: center 28%;
  }
  .tool-hero::after {
    background: linear-gradient(90deg, rgba(6, 9, 14, 0.6) 0%, rgba(6, 9, 14, 0.2509803922) 50%, rgba(6, 9, 14, 0.031372549)), linear-gradient(0deg, #06090e 0%, rgba(6, 9, 14, 0.4392156863) 20%, transparent 70%);
  }
  .tool-hero-content {
    padding-top: 38px;
    padding-bottom: 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .tool-hero h1 {
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.05;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
  }
  .tool-hero-description {
    font-size: 17px;
    line-height: 1.6;
    max-width: 800px;
    color: #f0edf5;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5333333333);
  }
  .tracker, .pirate-game {
    margin-top: 20px;
  }
  .tracker label, .filters label {
    font-size: 14px;
    color: #c2c5ca;
  }
  .tracker input, .tracker select {
    font-size: 14px;
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .save-note {
    font-size: 13px;
    color: #bfc2c7;
  }
  .storage-note {
    font-size: 12px;
    color: #a1a4a9;
    margin: 8px 0;
  }
  #notice {
    font-size: 12px;
    color: #b7babf;
    margin: 6px 0;
  }
  .stats {
    gap: 16px;
    margin: 16px 0;
  }
  .stats > div {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 16px;
    padding: 15px 20px;
  }
  .stats span {
    font-size: 12px;
    letter-spacing: 0.7px;
    color: #bcbfc4;
  }
  .stats strong {
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
  }
  .stats progress {
    grid-column: 1/-1;
    height: 4px;
  }
  .filters {
    margin-top: 18px;
    padding: 16px;
    gap: 14px;
  }
  .filters button {
    font-size: 13px;
    height: 43px;
  }
  .checklist-heading {
    margin: 24px 0 16px;
  }
  .checklist-heading h2 {
    font-size: 25px;
  }
  .checklist-heading span {
    font-size: 12px;
    color: #aeb1b6;
  }
  .sprite-heading h3, .compact .sprite-info h3 {
    font-size: 17px;
  }
  .variant-button .variant-label, .compact .variant-label {
    font-size: 12px;
  }
  .variant-button .state-label {
    font-size: 11px;
    color: #b6b9be;
  }
  .compact .variants-row {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 12px 7px;
  }
  .backup-tools button, .file-button {
    font-size: 13px;
  }
  .home-heading p {
    font-size: 14px;
    color: #b1b4b9;
  }
  .tool-card p {
    font-size: 15px;
    color: #b4bdc6;
    line-height: 1.75;
  }
  .tool-card-bottom span {
    font-size: 12px;
    color: #a7aaaf;
  }
  .site-footer {
    font-size: 12px;
    color: #9ea1a6;
  }
  .pirate-status, .pirate-batch {
    font-size: 15px;
  }
  .pirate-actions #auto, .pirate-actions #reset.search-finished {
    font-size: 16px;
  }
  .pirate-game .pirate-prize h3 {
    font-size: 16px;
  }
  .pirate-prize small, .pirate-help {
    font-size: 13px;
  }
  @media (max-width: 700px) {
    .logo-word {
      font-size: 30px;
    }
    .site-header nav a {
      font-size: 14px;
      padding: 9px 14px;
    }
    .tool-hero {
      min-height: 210px;
    }
    .tool-hero-content {
      padding-top: 30px;
      padding-bottom: 30px;
    }
    .tool-hero-description {
      font-size: 15px;
    }
    .stats > div {
      padding: 14px;
      gap: 10px;
    }
    .stats span {
      font-size: 10px;
    }
    .stats strong {
      font-size: 21px;
    }
    .checklist-heading {
      align-items: start;
    }
    .checklist-heading span {
      font-size: 11px;
    }
    .compact .variants-row {
      grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    }
  }
  .home-page .tool-hero {
    min-height: clamp(420px, 42vw, 580px);
  }
  .home-page .tool-hero-image {
    object-position: center 42%;
  }
  .home-page .tool-hero-content {
    padding-top: 180px;
    padding-bottom: 56px;
    justify-content: flex-end;
  }
  .home-page .tool-hero h1 {
    font-size: clamp(42px, 4.8vw, 68px);
    max-width: 1000px;
    margin-bottom: 20px;
  }
  .home-page .tool-hero-description {
    font-size: 18px;
    max-width: 670px;
    line-height: 1.7;
  }
  .home-page .tool-hero::after {
    background: linear-gradient(0deg, #06090e 0%, rgba(6, 9, 14, 0.5333333333) 20%, rgba(6, 9, 14, 0.062745098) 75%), linear-gradient(90deg, rgba(6, 9, 14, 0.4666666667), rgba(6, 9, 14, 0.1450980392) 65%, transparent);
  }
  @media (max-width: 700px) {
    .home-page .tool-hero {
      min-height: 430px;
    }
    .home-page .tool-hero-content {
      padding-top: 150px;
      padding-bottom: 40px;
    }
    .home-page .tool-hero h1 {
      font-size: clamp(38px, 8vw, 52px);
    }
    .home-page .tool-hero-description {
      font-size: 15px;
    }
    .home-page .tool-hero-image {
      object-position: 60% center;
    }
  }
  .header-inner {
    max-width: none;
    padding-inline: 24px;
  }
  .home-page .tool-hero {
    min-height: clamp(280px, 28vw, 440px);
    align-items: stretch;
  }
  .home-page .tool-hero-image {
    object-position: top center;
  }
  .home-page .tool-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(115% 95% at 40% 45%, transparent 45%, rgba(88, 18, 239, 0.38) 100%);
  }
  .home-page .tool-hero::after {
    background: linear-gradient(90deg, rgba(7, 7, 14, 0.85), rgba(7, 7, 14, 0.45) 55%, rgba(7, 7, 14, 0.1)), linear-gradient(0deg, #06090e 0%, rgba(7, 7, 14, 0.72) 14%, rgba(7, 7, 14, 0.3) 34%, transparent 62%);
  }
  .home-page .tool-hero-content {
    max-width: none;
    margin: 0;
    min-height: clamp(280px, 28vw, 440px);
    justify-content: flex-end;
    align-items: flex-start;
    gap: 0.55rem;
    padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.5rem);
  }
  .home-page .tool-hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 2rem + 3vw, 4.6rem);
    line-height: 1;
    letter-spacing: 0.02em;
    max-width: none;
  }
  .home-page .tool-hero-description {
    margin: 0;
    max-width: 680px;
    font-size: 1.25rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  }
  body:not(.home-page) .tool-hero {
    min-height: clamp(165px, 18vw, 220px);
  }
  body:not(.home-page) .tool-hero-content {
    max-width: none;
    padding: clamp(1.15rem, 2.6vw, 2rem) clamp(1rem, 2.3vw, 1.75rem);
    justify-content: flex-end;
  }
  body:not(.home-page) .tool-hero-image {
    object-position: center 22%;
  }
  @media (max-width: 700px) {
    .home-page .tool-hero, .home-page .tool-hero-content {
      min-height: 320px;
    }
    .home-page .tool-hero-description {
      font-size: 16px;
    }
    .header-inner {
      padding-inline: 20px;
    }
  }
  .logo-word {
    transform: none;
    font-style: normal;
    text-shadow: none;
  }
  .logo-domain {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #e5f24a;
    text-shadow: none;
    font-style: normal;
  }
  .tool-card-body {
    padding: 28px;
  }
  .tool-card h3 {
    font-size: 27px;
    margin-bottom: 12px;
  }
  .tool-card p {
    margin-bottom: 24px;
  }
  .tool-card {
    background: #12151a;
    box-shadow: none;
  }
  .tool-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(229, 242, 74, 0.5019607843);
    background: #16191e;
  }
  @media (max-width: 600px) {
    .tool-card-body {
      padding: 24px;
    }
  }
  .tool-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(229, 242, 74, 0.1019607843);
    border: 1px solid rgba(229, 242, 74, 0.2196078431);
    color: #d6d9de;
    margin-bottom: 20px;
  }
  .tool-icon svg {
    width: 28px;
    height: 28px;
  }
  .tool-open-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 11px 18px;
    border: 1px solid rgba(229, 242, 74, 0.4);
    border-radius: 9px;
    background: linear-gradient(135deg, #d6e63e, #d6e63e);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }
  .tool-open-button:hover {
    filter: brightness(1.15);
  }
  .tool-card-bottom .tool-open-button span {
    font-size: 19px;
    color: #fff;
    line-height: 1;
  }
  @media (max-width: 420px) {
    .tool-card-bottom {
      align-items: start;
      flex-direction: column;
      gap: 16px;
    }
    .tool-open-button {
      width: 100%;
    }
  }
  body:not(.home-page) .tool-hero {
    position: relative;
    min-height: clamp(165px, 18vw, 220px);
    background: #191c21;
    overflow: hidden;
    align-items: stretch;
  }
  body:not(.home-page) .tool-hero-image {
    object-position: center 22%;
  }
  body:not(.home-page) .tool-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(110% 125% at 72% 35%, transparent 35%, rgba(88, 18, 239, 0.34) 100%);
  }
  body:not(.home-page) .tool-hero::after {
    background: linear-gradient(90deg, rgba(7, 7, 14, 0.9), rgba(7, 7, 14, 0.48) 58%, rgba(7, 7, 14, 0.12)), linear-gradient(0deg, #06090e 0%, rgba(7, 7, 14, 0.52) 22%, transparent 72%);
  }
  body:not(.home-page) .tool-hero-content {
    min-height: clamp(165px, 18vw, 220px);
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.15rem, 2.6vw, 2rem) clamp(1rem, 2.3vw, 1.75rem);
  }
  body:not(.home-page) .tool-hero h1 {
    margin: 0;
    font-family: "Barlow Condensed", "Google Sans", sans-serif;
    font-size: clamp(2.15rem, 1.6rem + 2.3vw, 3.5rem);
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
  }
  body:not(.home-page) .tool-hero-description {
    max-width: 760px;
    margin: 0.55rem 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(0.92rem, 0.82rem + 0.3vw, 1.05rem);
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
    line-height: 1.5;
  }
  @media (max-width: 767px) {
    body:not(.home-page) .tool-hero, body:not(.home-page) .tool-hero-content {
      min-height: 145px;
    }
  }
  .mobile-menu {
    display: none;
  }
  @media (max-width: 760px) {
    .site-header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: #080b10;
    }
    .header-inner {
      min-height: 72px;
      padding: 12px 20px;
      flex-wrap: nowrap;
      justify-content: space-between;
      gap: 12px;
    }
    .header-inner > nav, .header-inner > .support-link {
      display: none;
    }
    .logo-word {
      font-size: 28px;
    }
    .mobile-menu {
      display: block;
      margin-left: auto;
    }
    .mobile-menu summary {
      display: flex;
      align-items: center;
      gap: 9px;
      list-style: none;
      min-height: 44px;
      padding: 10px 12px;
      border: 1px solid rgba(229, 242, 74, 0.2666666667);
      border-radius: 9px;
      color: #e5e8ed;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
    }
    .mobile-menu summary::-webkit-details-marker {
      display: none;
    }
    .mobile-menu summary:focus-visible {
      outline: 2px solid #e5f24a;
      outline-offset: 3px;
    }
    .menu-close {
      display: none;
      font-size: 26px;
      line-height: 22px;
      width: 22px;
      text-align: center;
    }
    .mobile-menu[open] .menu-icon {
      display: none;
    }
    .mobile-menu[open] .menu-close {
      display: block;
    }
    .mobile-menu-panel {
      position: absolute;
      left: 0;
      right: 0;
      top: 100%;
      padding: 12px 20px 20px;
      background: #101317;
      border-bottom: 1px solid rgba(229, 242, 74, 0.3019607843);
      box-shadow: 0 20px 35px rgba(0, 0, 0, 0.5333333333);
    }
    .site-header .mobile-menu nav {
      display: flex;
      flex-direction: column;
      margin: 0;
      width: 100%;
      gap: 6px;
    }
    .site-header .mobile-menu nav a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 50px;
      padding: 12px 16px;
      font-size: 16px;
    }
    .mobile-menu nav a span {
      color: #999ca1;
    }
    .mobile-support {
      display: block;
      text-align: center;
      padding: 18px 8px 4px;
      color: #b7babf;
      font-size: 13px;
      text-decoration: none;
    }
    .tracker input, .tracker select, .pirate-batch input {
      font-size: 16px;
      min-height: 44px;
    }
    .tracker button, .file-button {
      min-height: 44px;
    }
    .tracker .sprite-info-button {
      min-height: 36px;
      min-width: 36px;
      width: 36px;
      height: 36px;
      flex-basis: 36px;
      border: 0;
    }
    .compact .variant-button {
      min-height: 56px;
    }
    .compact .variant-dot {
      width: 38px;
      height: 38px;
    }
    .backup-tools {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }
    .backup-tools button, .backup-tools .file-button {
      justify-content: center;
      text-align: center;
    }
    .pirate-batch button {
      min-height: 44px;
      min-width: 44px;
    }
    #sprite-info-dialog {
      max-height: calc(100dvh - 40px);
      overflow: auto;
    }
    #sprite-info-close {
      min-width: 44px;
      min-height: 44px;
    }
    .home-page .tool-hero h1 {
      font-size: clamp(36px, 9vw, 48px);
    }
  }
  @media (max-width: 360px) {
    .header-inner {
      padding-inline: 16px;
    }
    .logo-word {
      font-size: 25px;
    }
    .menu-label {
      display: none;
    }
    .stats {
      gap: 8px;
    }
    .stats > div {
      padding: 12px;
    }
    .stats span {
      font-size: 9px;
      letter-spacing: 0;
    }
    .stats strong {
      font-size: 19px;
    }
  }
  body {
    background-color: #06090e;
    background-image: radial-gradient(ellipse 680px 480px at 0 0, rgba(124, 58, 237, 0.09), transparent 70%), radial-gradient(ellipse 700px 650px at 100% 70%, rgba(168, 85, 247, 0.045), transparent 75%);
  }
  .site-header {
    background-color: #080b10;
    background-image: radial-gradient(ellipse 340px 160px at 6% 0%, rgba(124, 58, 237, 0.2), transparent 75%), radial-gradient(ellipse 220px 100px at 15% 0%, rgba(236, 72, 153, 0.065), transparent 75%);
  }
  .site-header .brand {
    filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.16));
  }
  @media (max-width: 760px) {
    .site-header {
      background-size: auto;
      background-image: radial-gradient(ellipse 240px 110px at 0 0, rgba(124, 58, 237, 0.18), transparent 80%);
    }
  }
  body, button, input, select, textarea {
    font-family: "Google Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  .home-main, .tracker, .pirate-game {
    width: 100%;
    max-width: none;
  }
  .site-footer {
    max-width: none;
    margin-left: 32px;
    margin-right: 32px;
  }
  @media (max-width: 900px) {
    .site-footer {
      margin-left: 24px;
      margin-right: 24px;
    }
  }
  @media (max-width: 600px) {
    .site-footer {
      margin-left: 20px;
      margin-right: 20px;
    }
  }
  .pirate-extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0 20px;
  }
  .pirate-panel {
    padding: 26px;
    border: 1px solid rgba(178, 181, 186, 0.1882352941);
    border-radius: 14px;
    background: linear-gradient(180deg, #16191e, #101317);
  }
  .pirate-panel h2 {
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 14px;
  }
  .pirate-panel > p {
    color: #b6b9be;
    font-size: 14px;
    line-height: 1.7;
  }
  .pirate-panel .eyebrow {
    font-size: 10px;
    color: #e5f24a;
    margin-bottom: 10px;
  }
  .pirate-panel button {
    border: 1px solid rgba(229, 242, 74, 0.3019607843);
    border-radius: 8px;
    background: #202328;
    color: #f0f3f8;
    padding: 10px 14px;
    font-size: 13px;
    min-height: 44px;
  }
  .pirate-panel .pirate-note {
    font-size: 12px;
    color: #a2a5aa;
  }
  .hunt-bar-track {
    height: 7px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.0392156863);
    overflow: hidden;
  }
  .hunt-bar-track > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #e5f24a, #c8df36);
    border-radius: inherit;
  }
  .pirate-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 22px 0;
  }
  .pirate-mini-stats > div {
    padding: 12px;
    background: rgba(8, 11, 16, 0.4666666667);
    border-radius: 8px;
  }
  .pirate-mini-stats span {
    display: block;
    font-size: 12px;
    color: #a6a9ae;
  }
  .pirate-mini-stats strong {
    font-size: 22px;
    display: block;
    margin-top: 3px;
  }
  #compare-results h3 {
    font: 600 13px "Google Sans", sans-serif;
    margin: 20px 0 14px;
  }
  .hunt-bars {
    display: grid;
    gap: 12px;
  }
  .hunt-bar-row {
    display: grid;
    grid-template-columns: 120px 1fr 62px;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #bbbec3;
  }
  .hunt-bar-row strong {
    text-align: right;
    color: #e0e3e8;
    font-size: 11px;
  }
  .pirate-run-chance {
    color: #aeb1b6;
    font-size: 12px;
    margin: 0 0 20px;
  }
  .pirate-luck {
    max-width: 600px;
    margin: 0 auto 22px;
    padding: 18px;
    border: 1px solid rgba(231, 183, 86, 0.3333333333);
    border-radius: 10px;
    background: rgba(231, 183, 86, 0.0392156863);
  }
  .pirate-luck strong {
    color: #ffda85;
    font-size: 21px;
  }
  .pirate-luck p {
    font-size: 13px;
    line-height: 1.7;
    margin: 8px 0 0;
    color: #d3d6db;
  }
  .history-list {
    max-height: 350px;
    overflow: auto;
  }
  .history-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.0431372549);
    padding: 14px 0;
    font-size: 13px;
  }
  .history-row span {
    color: #a7aaaf;
  }
  .history-row span:last-child {
    text-align: right;
    color: #d2d5da;
  }
  .history-row strong {
    text-align: center;
    color: #eee3f6;
  }
  .tool-open-button, .pirate-actions #auto, .pirate-actions #reset.search-finished, .pirate-panel .pirate-primary {
    background: linear-gradient(110deg, #e5f24a 0%, #c8df36 100%);
    border: 0;
    color: #fff;
    box-shadow: 0 8px 28px rgba(168, 85, 247, 0.26), 0 0 20px rgba(236, 72, 153, 0.1);
    border-radius: 12px;
    font-weight: 750;
    padding: 13px 22px;
    transition: filter 0.15s, box-shadow 0.15s;
  }
  .tool-open-button:hover, .pirate-actions #auto:hover, .pirate-panel .pirate-primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.36);
  }
  @media (max-width: 760px) {
    .pirate-extras {
      grid-template-columns: 1fr;
    }
    .pirate-panel {
      padding: 20px;
    }
    .pirate-panel h2 {
      font-size: 24px;
    }
    .history-row {
      font-size: 11px;
      gap: 8px;
    }
    .hunt-bar-row {
      grid-template-columns: 105px 1fr 56px;
      gap: 8px;
    }
    .pirate-mini-stats strong {
      font-size: 20px;
    }
  }
  body select:not([multiple]):not([size]), body select[size="1"] {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 48px;
    min-height: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23e7dff2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
    cursor: pointer;
    color-scheme: dark;
  }
  body select:disabled {
    cursor: not-allowed;
    opacity: 0.6;
  }
  @media (forced-colors: active) {
    body select:not([multiple]):not([size]), body select[size="1"] {
      appearance: auto;
      -webkit-appearance: auto;
      background-image: none;
    }
  }
  .recent-players {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .recent-players a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    background: rgba(229, 242, 74, 0.0666666667);
    border: 1px solid rgba(229, 242, 74, 0.2666666667);
    border-radius: 9px;
    text-decoration: none;
    overflow-wrap: anywhere;
    max-width: 100%;
  }
  .recent-players a:hover {
    background: rgba(229, 242, 74, 0.1490196078);
    border-color: #e5f24a;
  }
  .recent-players p {
    color: #a9b2bc;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
  }
  @media (max-width: 600px) {
    .home-player-search {
      padding: 22px 20px;
    }
    .home-player-search-row {
      flex-direction: column;
    }
    .home-player-search input {
      font-size: 16px;
    }
    .home-player-search button {
      min-height: 48px;
    }
  }
  .player-recent {
    margin: 22px 0 28px;
  }
  .player-recent h2 {
    font: 700 15px "Google Sans", sans-serif;
    margin: 0 0 12px;
  }
  .sprite-view-switch {
    display: inline-flex;
    gap: 0;
  }
  .sprite-view-switch button {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 0;
  }
  .sprite-view-switch button:first-child {
    border-radius: 9px 0 0 9px;
  }
  .sprite-view-switch button:last-child {
    border-radius: 0 9px 9px 0;
  }
  .sprite-view-switch button[aria-pressed=true] {
    color: #fff;
    border-color: rgba(229, 242, 74, 0.4666666667);
    background: linear-gradient(110deg, rgba(229, 242, 74, 0.2666666667), rgba(200, 223, 54, 0.2));
  }
  .site-footer {
    flex-wrap: wrap;
  }
  .site-footer .footer-support-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex: 0 0 100%;
    width: 100%;
    padding: 28px;
    margin-bottom: 12px;
    border: 1px solid rgba(229, 242, 74, 0.2);
    border-radius: 14px;
    background: radial-gradient(ellipse at top left, rgba(229, 242, 74, 0.0980392157), transparent 75%), #101318;
  }
  .footer-support-feature h2 {
    font-size: 22px;
    line-height: 1.4;
    color: #f1e7fa;
    margin: 8px 0 10px;
  }
  .footer-support-feature h2 span {
    color: #d3d6db;
  }
  .site-footer .footer-support-eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #e5f24a;
  }
  .footer-support-feature .tool-open-button {
    flex-shrink: 0;
    color: #fff;
  }
  .site-footer .footer-support-feature p {
    margin: 0;
  }
  @media (max-width: 700px) {
    .site-footer .footer-support-feature {
      align-items: stretch;
      flex-direction: column;
      padding: 22px;
      gap: 20px;
    }
    .footer-support-feature h2 {
      font-size: 20px;
    }
    .footer-support-feature .tool-open-button {
      text-align: center;
    }
  }
  @media (min-width: 761px) and (max-width: 1250px) {
    .header-inner {
      gap: 12px;
      padding-inline: 20px;
    }
    .site-header nav {
      gap: 2px;
    }
    .site-header nav a {
      font-size: 12px;
      padding: 9px 8px;
    }
    .logo-word {
      font-size: 28px;
    }
  }
  .loading-skeleton {
    pointer-events: none;
    padding: 22px;
    border: 1px solid rgba(229, 242, 74, 0.168627451);
    border-radius: 14px;
    background: #171b20;
    min-width: 0;
  }
  .loading-skeleton span {
    display: block;
    border-radius: 8px;
    background: linear-gradient(100deg, rgba(158, 161, 166, 0.062745098) 20%, rgba(195, 198, 203, 0.1450980392) 45%, rgba(158, 161, 166, 0.062745098) 70%);
    background-size: 250% 100%;
    animation: flatfoot-loading 1.6s ease-in-out infinite;
  }
  .loading-skeleton-art {
    height: 170px;
    margin-bottom: 20px;
  }
  .loading-skeleton-title {
    height: 20px;
    width: 75%;
    margin-bottom: 12px;
  }
  .loading-skeleton-line {
    height: 13px;
    width: 45%;
  }
  .loading-skeleton-stat .loading-skeleton-art {
    height: 12px;
    width: 50%;
    margin: 0 0 20px;
  }
  .loading-skeleton-stat .loading-skeleton-title {
    height: 38px;
    width: 75%;
  }
  .loading-skeleton-stat .loading-skeleton-line {
    display: none;
  }
  .loading-skeletons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 24px 0;
  }
  .loading-skeletons[hidden] {
    display: none;
  }
  .image-loading {
    background: linear-gradient(100deg, rgba(158, 161, 166, 0.062745098) 20%, rgba(195, 198, 203, 0.1450980392) 45%, rgba(158, 161, 166, 0.062745098) 70%);
    background-size: 250% 100%;
    animation: flatfoot-loading 1.6s ease-in-out infinite;
    border-radius: 8px;
  }
  @keyframes flatfoot-loading {
    0% {
      background-position: 100% 0;
    }
    100% {
      background-position: -100% 0;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .loading-skeleton span, .image-loading {
      animation: none;
    }
  }
  @media (max-width: 600px) {
    .loading-skeletons {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .loading-skeleton {
      padding: 16px;
    }
    .loading-skeleton-art {
      height: 130px;
    }
  }
}
@layer tools {
  body.page-cosmetics .cosmetics-main {
    padding: 0 32px 32px;
    min-height: 50vh;
  }
  body.page-cosmetics .cosmetics-main button, body.page-cosmetics #cosmetic-dialog button {
    font: 600 14px "Google Sans", sans-serif;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(229, 242, 74, 0.2666666667);
    border-radius: 9px;
    color: #f4f6f8;
    background: #202328;
    cursor: pointer;
  }
  body.page-cosmetics .cosmetics-main button:disabled {
    opacity: 0.4;
    cursor: default;
  }
  body.page-cosmetics .cosmetics-tabs {
    display: flex;
    gap: 10px;
  }
  body.page-cosmetics .cosmetics-tabs button[aria-pressed=true], body.page-cosmetics #cosmetic-heart[aria-pressed=true] {
    background: linear-gradient(110deg, rgba(229, 242, 74, 0.2666666667), rgba(200, 223, 54, 0.2));
    border-color: rgba(229, 242, 74, 0.5333333333);
  }
  body.page-cosmetics .cosmetics-tabs span {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.0705882353);
  }
  body.page-cosmetics .cosmetics-note, body.page-cosmetics #cosmetics-storage {
    font-size: 13px;
    line-height: 1.7;
    color: #b3b6bb;
  }
  body.page-cosmetics .cosmetics-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr auto;
    gap: 14px;
    align-items: end;
    margin: 24px 0;
  }
  body.page-cosmetics .cosmetics-filters label {
    display: grid;
    gap: 8px;
    font-size: 13px;
    color: #c2c5ca;
    min-width: 0;
  }
  body.page-cosmetics .cosmetics-filters input, body.page-cosmetics .cosmetics-filters select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    background-color: #171b20;
    border: 1px solid rgba(229, 242, 74, 0.2666666667);
    border-radius: 9px;
    color: #fff;
    font: inherit;
    padding: 12px;
  }
  body.page-cosmetics .cosmetics-filters button {
    min-height: 48px;
  }
  body.page-cosmetics #cosmetics-status {
    color: #c2c5ca;
    font-size: 14px;
  }
  body.page-cosmetics .cosmetics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin: 24px 0;
  }
  body.page-cosmetics .cosmetic-card {
    --rarity: #a2a5aa;
    position: relative;
    min-width: 0;
    border: 1px solid rgba(229, 242, 74, 0.1803921569);
    border-top: 3px solid var(--rarity);
    border-radius: 13px;
    overflow: hidden;
    background: radial-gradient(ellipse at top, rgba(229, 242, 74, 0.0823529412), transparent 70%), #12151a;
  }
  body.page-cosmetics .cosmetics-main .cosmetic-card-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: 100%;
    padding: 18px;
    border: 0;
    background: transparent;
    text-align: left;
  }
  body.page-cosmetics .cosmetic-card-open img {
    width: 100%;
    height: 170px;
    object-fit: contain;
    margin-bottom: 12px;
  }
  body.page-cosmetics .cosmetic-card-open h3 {
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 8px;
    min-height: 2.8em;
    overflow-wrap: anywhere;
  }
  body.page-cosmetics .cosmetic-card-type {
    font-size: 12px;
    color: #acafb4;
  }
  body.page-cosmetics .cosmetics-main .cosmetic-card-heart {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 42px;
    height: 42px;
    min-height: 42px;
    font-size: 24px;
    padding: 0;
    border-radius: 50%;
    background: rgba(9, 12, 17, 0.8666666667);
  }
  body.page-cosmetics .cosmetic-card-heart[aria-pressed=true] {
    color: #bdc0c5;
    border-color: rgba(200, 223, 54, 0.4666666667);
  }
  body.page-cosmetics .cosmetic-card:hover {
    border-color: rgba(229, 242, 74, 0.5333333333);
  }
  body.page-cosmetics .cosmetics-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    font-size: 13px;
    color: #b7babf;
  }
  body.page-cosmetics .cosmetics-empty {
    grid-column: 1/-1;
    padding: 45px 24px;
    border: 1px solid rgba(229, 242, 74, 0.2);
    border-radius: 14px;
    text-align: center;
    background: #111419;
  }
  body.page-cosmetics .cosmetics-empty h2 {
    font-size: 24px;
  }
  body.page-cosmetics .cosmetics-empty p {
    font-size: 14px;
    color: #b7babf;
  }
  body.page-cosmetics .rarity-uncommon {
    --rarity: #69d58b;
  }
  body.page-cosmetics .rarity-rare {
    --rarity: #69afff;
  }
  body.page-cosmetics .rarity-epic {
    --rarity: #c584ff;
  }
  body.page-cosmetics .rarity-legendary {
    --rarity: #ffb45f;
  }
  body.page-cosmetics .rarity-mythic {
    --rarity: #f6dc78;
  }
  body.page-cosmetics .rarity-exotic {
    --rarity: #64e4e4;
  }
  body.page-cosmetics #cosmetic-dialog {
    width: min(740px, 100% - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    border: 1px solid rgba(229, 242, 74, 0.4666666667);
    border-radius: 16px;
    padding: 28px;
    color: #f8f0ff;
    background: radial-gradient(ellipse at top, rgba(229, 242, 74, 0.1607843137), transparent 65%), #12151a;
  }
  body.page-cosmetics #cosmetic-dialog::backdrop {
    background: rgba(4, 7, 12, 0.8666666667);
  }
  body.page-cosmetics #cosmetic-close {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 44px;
    font-size: 26px;
    padding: 0;
  }
  body.page-cosmetics #cosmetic-image {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: contain;
    margin: 12px 0 24px;
  }
  body.page-cosmetics #cosmetic-image[hidden] {
    display: none;
  }
  body.page-cosmetics .cosmetic-details h2 {
    font-size: 28px;
    margin: 12px 0;
  }
  body.page-cosmetics .cosmetic-details p {
    font-size: 14px;
    line-height: 1.7;
    color: #bcbfc4;
  }
  body.page-cosmetics #cosmetic-meta {
    color: #cccfd4;
    font-size: 12px;
  }
  body.page-cosmetics #cosmetic-heart {
    margin: 16px 0;
  }
  body.page-cosmetics .cosmetics-filters {
    scroll-margin-top: 90px;
  }
  @media (max-width: 1000px) {
    body.page-cosmetics .cosmetics-filters {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.page-cosmetics .cosmetics-filters label:first-child {
      grid-column: 1/-1;
    }
    body.page-cosmetics .cosmetics-filters button {
      grid-column: 1/-1;
    }
  }
  @media (max-width: 600px) {
    body.page-cosmetics .cosmetics-main {
      padding: 0 20px 24px;
    }
    body.page-cosmetics .cosmetics-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    body.page-cosmetics .cosmetics-main .cosmetic-card-open {
      padding: 14px 10px;
    }
    body.page-cosmetics .cosmetic-card-open img {
      height: 130px;
    }
    body.page-cosmetics .cosmetics-filters input, body.page-cosmetics .cosmetics-filters select {
      font-size: 16px;
    }
    body.page-cosmetics .cosmetics-tabs button {
      flex: 1;
      padding: 10px;
    }
    body.page-cosmetics .cosmetic-card-open h3 {
      font-size: 14px;
    }
    body.page-cosmetics #cosmetic-dialog {
      padding: 22px 18px;
    }
    body.page-cosmetics #cosmetic-image {
      height: 220px;
    }
    body.page-cosmetics .cosmetics-pagination {
      gap: 12px;
    }
  }
  body.page-cosmetics .cosmetics-filters {
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1.2fr auto;
  }
  body.page-cosmetics #cosmetic-image {
    height: clamp(260px, 48vh, 480px);
    object-fit: contain;
  }
  @media (max-width: 1100px) {
    body.page-cosmetics .cosmetics-filters {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.page-cosmetics .cosmetics-filters label:first-child {
      grid-column: 1/-1;
    }
    body.page-cosmetics .cosmetics-filters button {
      grid-column: 1/-1;
    }
  }
  body.page-cosmetics .cosmetics-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 20px;
  }
  body.page-cosmetics .cosmetics-type-tabs button {
    font: 600 14px "Google Sans", sans-serif;
    color: #c2c9d0;
    background: #171b20;
    border: 1px solid rgba(229, 242, 74, 0.2);
    border-radius: 10px;
    min-height: 44px;
    padding: 10px 17px;
    cursor: pointer;
  }
  body.page-cosmetics .cosmetics-type-tabs button:hover {
    border-color: rgba(229, 242, 74, 0.5333333333);
    color: #fff;
  }
  body.page-cosmetics .cosmetics-type-tabs button[aria-pressed=true] {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(110deg, #e5f24a, #c8df36);
    box-shadow: 0 4px 20px rgba(229, 242, 74, 0.1411764706);
  }
  body.page-cosmetics .cosmetics-type-tabs button:focus-visible {
    outline: 2px solid #dadde2;
    outline-offset: 3px;
  }
  body.page-cosmetics .cosmetics-filters {
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
  }
  @media (max-width: 1100px) {
    body.page-cosmetics .cosmetics-filters {
      grid-template-columns: 1fr 1fr;
    }
  }
  @media (max-width: 600px) {
    body.page-cosmetics .cosmetics-type-tabs {
      flex-wrap: nowrap;
      overflow-x: auto;
      padding: 3px 2px 10px;
      margin: 20px 0 12px;
    }
    body.page-cosmetics .cosmetics-type-tabs button {
      flex: none;
      padding-inline: 16px;
    }
  }
}

@layer tools {
  body.page-loadout .loadout-main {
    padding: 0 32px 32px;
  }
  body.page-loadout .loadout-main h2, body.page-loadout #loadout-image-dialog h2 {
    font: 400 28px "Barlow Condensed", "Google Sans", sans-serif;
    margin: 0;
  }
  body.page-loadout .loadout-main button, body.page-loadout #loadout-image-dialog button {
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid rgba(229, 242, 74, 0.2666666667);
    border-radius: 9px;
    background: #212429;
    color: #f5ecff;
    font: 600 13px "Google Sans", sans-serif;
    cursor: pointer;
  }
  body.page-loadout .loadout-main button:disabled {
    opacity: 0.4;
    cursor: default;
  }
  body.page-loadout .loadout-build {
    border: 1px solid rgba(229, 242, 74, 0.2);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 36px;
    background: linear-gradient(145deg, #1b2026, #101317);
  }
  body.page-loadout .loadout-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  body.page-loadout .loadout-heading p, body.page-loadout #loadout-feedback, body.page-loadout #loadout-status, body.page-loadout #loadout-image-status {
    font-size: 13px;
    line-height: 1.7;
    color: #b7babf;
  }
  body.page-loadout .loadout-name-label {
    display: grid;
    gap: 8px;
    font-size: 13px;
    color: #c6c9ce;
    max-width: 500px;
    margin: 20px 0;
  }
  body.page-loadout .loadout-name-label input {
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid rgba(229, 242, 74, 0.2666666667);
    border-radius: 9px;
    background: #0a0d12;
    color: #fff;
    font: inherit;
  }
  body.page-loadout .loadout-slots {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
  }
  body.page-loadout .loadout-slot {
    min-width: 0;
    border: 1px solid rgba(229, 242, 74, 0.2);
    border-top: 3px solid var(--rarity, #e5f24a);
    border-radius: 12px;
    background: rgba(10, 13, 18, 0.4666666667);
    padding: 10px;
  }
  body.page-loadout .loadout-slot.active {
    outline: 2px solid #e5f24a;
    outline-offset: 3px;
  }
  body.page-loadout .loadout-main .slot-pick {
    border: 0;
    background: transparent;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px;
    min-height: 170px;
  }
  body.page-loadout .slot-pick img {
    width: 100%;
    height: 75px;
    object-fit: contain;
  }
  body.page-loadout .slot-pick strong {
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  body.page-loadout .slot-pick small {
    color: #b1b4b9;
  }
  body.page-loadout .slot-number {
    font-size: 11px;
    color: #c5c8cd;
  }
  body.page-loadout .slot-tools {
    display: flex;
    gap: 5px;
    justify-content: center;
  }
  body.page-loadout .loadout-main .slot-tools button {
    padding: 5px;
    min-width: 32px;
    font-size: 15px;
  }
  body.page-loadout .loadout-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  body.page-loadout .loadout-main .tool-open-button {
    background: linear-gradient(110deg, #e5f24a, #c8df36);
    box-shadow: 0 6px 24px rgba(229, 242, 74, 0.1490196078);
  }
  body.page-loadout .loadout-main .weapon-filters {
    margin-top: 20px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  body.page-loadout .loadout-main .weapon-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  body.page-loadout .loadout-main .weapon-card h3, body.page-loadout .loadout-main .weapon-card p {
    margin: 0;
  }
  body.page-loadout .loadout-main .weapon-card h3 {
    min-height: 2.8em;
  }
  body.page-loadout .loadout-main .weapon-card button {
    margin-top: auto;
  }
  body.page-loadout .loadout-main .weapon-card select {
    min-height: 44px;
    font-size: 14px;
    background-color: #12161a;
    color: #fff;
    border: 1px solid rgba(229, 242, 74, 0.2666666667);
    border-radius: 8px;
    padding: 10px 48px 10px 10px;
    width: 100%;
  }
  body.page-loadout .loadout-main .weapon-card label {
    display: grid;
    gap: 8px;
    color: #b7babf;
    font-size: 12px;
  }
  body.page-loadout #loadout-image-dialog {
    width: min(960px, 100% - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    background: #14171c;
    color: #fff;
    border: 1px solid rgba(229, 242, 74, 0.4);
    border-radius: 16px;
    padding: 24px;
  }
  body.page-loadout #loadout-image-dialog::backdrop {
    background: rgba(4, 7, 12, 0.8666666667);
  }
  body.page-loadout #loadout-image-preview {
    width: 100%;
    display: block;
    margin: 20px 0;
    border-radius: 10px;
  }
  body.page-loadout #loadout-image-dialog [hidden] {
    display: none;
  }
  @media (max-width: 700px) {
    body.page-loadout .loadout-main {
      padding: 0 20px 24px;
    }
    body.page-loadout .loadout-build {
      padding: 22px 16px;
    }
    body.page-loadout .loadout-slots {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }
    body.page-loadout .loadout-slot:last-child {
      grid-column: 1/-1;
      max-width: calc(50% - 7px);
      width: 100%;
      justify-self: center;
    }
    body.page-loadout .loadout-main .slot-pick {
      min-height: 150px;
    }
    body.page-loadout .loadout-main .weapon-filters {
      grid-template-columns: 1fr 1fr;
    }
    body.page-loadout .loadout-main input, body.page-loadout .loadout-main select {
      font-size: 16px;
    }
    body.page-loadout .loadout-heading {
      align-items: start;
    }
    body.page-loadout .loadout-main h2 {
      font-size: 24px;
    }
    body.page-loadout .loadout-share-actions button {
      flex: 1;
    }
    body.page-loadout .loadout-main .weapon-grid {
      grid-template-columns: 1fr 1fr;
    }
    body.page-loadout .loadout-main .weapon-card {
      padding: 14px 10px;
    }
    body.page-loadout .loadout-main .weapon-card h3 {
      font-size: 15px;
    }
  }
  @media (min-width: 761px) and (max-width: 1200px) {
    body.page-loadout .header-inner {
      gap: 12px;
      padding-inline: 20px;
    }
    body.page-loadout .site-header nav {
      gap: 2px;
    }
    body.page-loadout .site-header nav a {
      font-size: 12px;
      padding: 9px 8px;
    }
    body.page-loadout .logo-word {
      font-size: 28px;
    }
  }
  body.page-loadout #loadout-picker {
    width: min(1000px, 100% - 28px);
    max-height: calc(100dvh - 28px);
    overflow: auto;
    background: #14171c;
    color: #fff;
    border: 1px solid rgba(229, 242, 74, 0.4666666667);
    border-radius: 16px;
    padding: 24px;
  }
  body.page-loadout #loadout-picker::backdrop {
    background: rgba(4, 7, 12, 0.8666666667);
  }
  body.page-loadout #loadout-picker h2 {
    font: 400 26px "Barlow Condensed", "Google Sans", sans-serif;
    margin: 0;
  }
  body.page-loadout #loadout-picker button {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(229, 242, 74, 0.2666666667);
    border-radius: 9px;
    background: #212429;
    color: #fff;
    font: 600 13px "Google Sans", sans-serif;
    cursor: pointer;
  }
  body.page-loadout .picker-search-label {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    color: #c6c9ce;
    font-size: 13px;
  }
  body.page-loadout .picker-search-label input, body.page-loadout #loadout-picker select {
    width: 100%;
    min-height: 46px;
    padding: 12px;
    border: 1px solid rgba(229, 242, 74, 0.2666666667);
    border-radius: 9px;
    background-color: #0b0e13;
    color: #fff;
    font: inherit;
  }
  body.page-loadout .picker-search-label input {
    font-size: 16px;
  }
  body.page-loadout #loadout-picker .weapon-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  body.page-loadout #loadout-picker .weapon-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-row: auto;
  }
  body.page-loadout #loadout-picker .weapon-card h3 {
    min-height: 2.8em;
    margin: 0;
    font-size: 15px;
  }
  body.page-loadout #loadout-picker .weapon-card label {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: #c2c5ca;
  }
  body.page-loadout #loadout-picker .weapon-card button {
    margin-top: auto;
  }
  body.page-loadout #loadout-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 32px);
    padding: 14px 22px;
    border: 1px solid #babdc2;
    border-radius: 12px;
    background: #212429;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 14px;
  }
  body.page-loadout #loadout-toast[hidden] {
    display: none;
  }
  body.page-loadout #loadout-toast img {
    width: 44px;
    height: 38px;
    object-fit: contain;
  }
  body.page-loadout .loadout-slot.just-added {
    animation: loadout-added 0.65s ease-out;
  }
  @keyframes loadout-added {
    0% {
      box-shadow: 0 0 0 4px #e5f24a, 0 0 35px rgba(229, 242, 74, 0.5333333333);
    }
    100% {
      box-shadow: 0 0 0 0 transparent;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    body.page-loadout .loadout-slot.just-added {
      animation: none;
    }
  }
  @media (max-width: 600px) {
    body.page-loadout #loadout-picker {
      padding: 18px;
    }
    body.page-loadout #loadout-picker h2 {
      font-size: 22px;
    }
    body.page-loadout #loadout-picker .weapon-grid {
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    body.page-loadout #loadout-picker .weapon-card {
      padding: 14px 10px;
    }
    body.page-loadout #loadout-picker select {
      font-size: 16px;
    }
    body.page-loadout #loadout-toast {
      width: calc(100% - 32px);
      bottom: 16px;
      padding: 12px 16px;
    }
  }
  body.page-loadout .picker-filters {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr);
    gap: 14px;
  }
  body.page-loadout .picker-filters .picker-search-label {
    min-width: 0;
  }
  body.page-loadout .picker-filters input, body.page-loadout .picker-filters select {
    min-width: 0;
  }
  @media (max-width: 600px) {
    body.page-loadout .picker-filters {
      grid-template-columns: 1fr;
      gap: 0;
    }
  }
  body.page-loadout .loadout-library {
    padding: 26px;
    margin: 0 0 36px;
    border: 1px solid rgba(229, 242, 74, 0.2);
    border-radius: 14px;
    background: #101318;
  }
  body.page-loadout .loadout-library > p {
    font-size: 13px;
    color: #b5b8bd;
    line-height: 1.7;
  }
  body.page-loadout #loadout-library-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
  }
  body.page-loadout .saved-loadout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    background: #1b2026;
    border: 1px solid rgba(229, 242, 74, 0.1803921569);
    border-radius: 10px;
    min-width: 0;
  }
  body.page-loadout .saved-loadout.current {
    border-color: rgba(229, 242, 74, 0.5333333333);
  }
  body.page-loadout .saved-loadout h3 {
    margin: 0 0 8px;
    font-size: 17px;
    overflow-wrap: anywhere;
  }
  body.page-loadout .saved-loadout p {
    margin: 0;
    font-size: 12px;
    color: #b3b6bb;
    line-height: 1.6;
  }
  body.page-loadout .saved-loadout-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }
  body.page-loadout .loadout-share-actions [hidden], body.page-loadout #loadout-undo-delete[hidden] {
    display: none;
  }
  @media (max-width: 900px) {
    body.page-loadout #loadout-library-list {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 600px) {
    body.page-loadout .loadout-library {
      padding: 22px 16px;
    }
    body.page-loadout .saved-loadout {
      align-items: start;
      flex-direction: column;
    }
    body.page-loadout .saved-loadout-actions {
      width: 100%;
    }
    body.page-loadout .saved-loadout-actions button {
      flex: 1;
    }
  }
  body.page-loadout .loadout-main > section[aria-labelledby=loadout-browse-title] {
    margin-bottom: 28px;
  }
  body.page-loadout .loadout-main > section[aria-label="Available items"] > .weapon-grid {
    margin-top: 0;
  }
  body.page-loadout .loadout-main .weapon-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.page-loadout .loadout-main .loadout-item-filters {
    margin-bottom: 24px;
  }
}

@layer tools {
  body.page-players .player-main {
    padding: 0 32px 32px;
    min-height: 45vh;
  }
  body.page-players .player-search, body.page-players .player-result-heading {
    max-width: 1100px;
  }
  body.page-players .player-search label, body.page-players .player-result-heading label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
  }
  body.page-players .player-search-row {
    display: flex;
    gap: 12px;
  }
  body.page-players .player-search input, body.page-players .player-result-heading select {
    min-height: 50px;
    background: #171b20;
    border: 1px solid rgba(229, 242, 74, 0.3019607843);
    border-radius: 10px;
    color: #fff;
    font: inherit;
    padding: 12px 16px;
  }
  body.page-players .player-search input {
    flex: 1;
    min-width: 0;
  }
  body.page-players .player-search button {
    cursor: pointer;
    font: 700 15px "Google Sans", sans-serif;
  }
  body.page-players .player-search button:disabled {
    opacity: 0.6;
    cursor: wait;
  }
  body.page-players .player-search input:focus-visible, body.page-players .player-result-heading select:focus-visible {
    outline: 2px solid #e5f24a;
    outline-offset: 3px;
  }
  body.page-players .player-search p, body.page-players .player-scope, body.page-players #player-status {
    color: #a9b2bc;
    font-size: 14px;
    line-height: 1.7;
  }
  body.page-players .player-result-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-top: 36px;
  }
  body.page-players .player-result-heading h2 {
    font-size: 32px;
    margin: 8px 0;
    overflow-wrap: anywhere;
  }
  body.page-players .player-result-heading .eyebrow {
    color: #e5f24a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
  }
  body.page-players .player-totals {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 36px;
  }
  body.page-players .player-totals > div, body.page-players .player-modes article {
    border: 1px solid rgba(229, 242, 74, 0.1803921569);
    background: linear-gradient(145deg, #1b2026, #101317);
    border-radius: 14px;
    padding: 24px;
  }
  body.page-players .player-totals span, body.page-players .player-mode-numbers span {
    display: block;
    color: #a9b2bc;
    font-size: 13px;
    margin-bottom: 8px;
  }
  body.page-players .player-totals strong {
    font-size: 32px;
  }
  body.page-players .player-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  body.page-players .player-modes h4 {
    margin: 0 0 22px;
    font-size: 18px;
  }
  body.page-players .player-mode-numbers {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }
  body.page-players .player-mode-numbers strong {
    font-size: 19px;
  }
  body.page-players .player-totals[hidden], body.page-players #player-result[hidden] {
    display: none;
  }
  @media (max-width: 1000px) {
    body.page-players .player-modes {
      grid-template-columns: 1fr;
    }
    body.page-players .player-totals strong {
      font-size: 26px;
    }
  }
  @media (max-width: 600px) {
    body.page-players .player-main {
      padding: 0 20px 24px;
    }
    body.page-players .player-search-row, body.page-players .player-result-heading {
      flex-direction: column;
      align-items: stretch;
    }
    body.page-players .player-search button {
      min-height: 50px;
    }
    body.page-players .player-totals {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    body.page-players .player-totals > div, body.page-players .player-modes article {
      padding: 18px;
    }
    body.page-players .player-mode-numbers {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 20px 8px;
    }
    body.page-players .player-result-heading select {
      width: 100%;
    }
    body.page-players .player-result-heading h2 {
      font-size: 28px;
    }
  }
  body.page-players .player-period select {
    height: 50px;
    background-color: #171b20;
    border: 1px solid rgba(229, 242, 74, 0.3019607843);
    border-radius: 10px;
    color: #fff;
    font: inherit;
    padding: 12px 16px;
  }
  body.page-players .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  body.page-players .player-error {
    max-width: 1100px;
    margin: 28px 0;
    padding: 32px;
    border: 1px solid rgba(229, 242, 74, 0.4);
    border-radius: 16px;
    background: radial-gradient(ellipse at top left, rgba(229, 242, 74, 0.1098039216), transparent 80%), #171b20;
  }
  body.page-players .player-error h2 {
    font-size: 26px;
    margin: 0 0 12px;
    color: #f2f5fa;
  }
  body.page-players .player-error p {
    font-size: 16px;
    line-height: 1.75;
    color: #c0c3c8;
    max-width: 760px;
    margin: 0;
  }
  body.page-players .player-error[hidden] {
    display: none;
  }
  @media (max-width: 600px) {
    body.page-players .player-period select {
      width: 100%;
    }
    body.page-players .player-error {
      padding: 24px;
    }
    body.page-players .player-error h2 {
      font-size: 23px;
    }
  }
  body.page-players .player-result-heading {
    max-width: none;
    align-items: flex-end;
  }
  body.page-players .player-controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  body.page-players .player-controls select {
    max-width: 100%;
    min-width: 170px;
  }
  body.page-players .player-family-tabs {
    display: flex;
    gap: 0;
    margin: 24px 0 16px;
    border: 1px solid rgba(229, 242, 74, 0.2);
    border-radius: 12px;
    overflow: auto;
    background: #12161a;
  }
  body.page-players .player-family-tabs button {
    flex: 1;
    white-space: nowrap;
    border: 0;
    border-right: 1px solid rgba(229, 242, 74, 0.1215686275);
    padding: 15px 22px;
    background: transparent;
    color: #b8bbc0;
    font: 650 15px "Google Sans", sans-serif;
    cursor: pointer;
    min-height: 52px;
  }
  body.page-players .player-family-tabs button:last-child {
    border-right: 0;
  }
  body.page-players .player-family-tabs button[aria-pressed=true] {
    background: linear-gradient(110deg, #e5f24a, #c8df36);
    color: #fff;
    box-shadow: 0 4px 22px rgba(229, 242, 74, 0.1490196078);
  }
  body.page-players .player-family-tabs button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -5px;
  }
  body.page-players .player-history-unavailable {
    padding: 24px;
    border: 1px solid rgba(229, 242, 74, 0.2666666667);
    border-radius: 12px;
    background: #1b2026;
    line-height: 1.7;
  }
  body.page-players .player-history-unavailable[hidden] {
    display: none;
  }
  body.page-players .player-mode-numbers {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  @media (max-width: 600px) {
    body.page-players .player-controls {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      width: 100%;
    }
    body.page-players .player-family-tabs button {
      font-size: 15px;
      padding: 14px 18px;
    }
    body.page-players .player-mode-numbers {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  body.page-players .player-family-tabs button:hover:not([aria-pressed=true]) {
    background: rgba(229, 242, 74, 0.0705882353);
    color: #f1f4f9;
  }
  body.page-players .player-filter-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin: 24px 0 16px;
  }
  body.page-players .player-filter-row .player-family-tabs {
    flex: 1;
    min-width: 0;
    margin: 0;
  }
  body.page-players .player-filter-row .player-controls {
    flex: none;
    flex-wrap: nowrap;
    gap: 12px;
  }
  body.page-players .player-filter-row .player-controls label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #a9b2bc;
    margin-bottom: 8px;
  }
  body.page-players .player-filter-row .player-controls select {
    height: 52px;
    min-width: 0;
    max-width: 240px;
    background-color: #171b20;
    border: 1px solid rgba(229, 242, 74, 0.3019607843);
    border-radius: 10px;
    color: #fff;
    font: inherit;
    padding: 12px 48px 12px 14px;
  }
  body.page-players .player-filter-row .player-family-tabs button {
    padding: 15px 16px;
  }
  @media (max-width: 1200px) {
    body.page-players .player-filter-row {
      flex-wrap: wrap;
    }
    body.page-players .player-filter-row .player-family-tabs {
      flex-basis: 100%;
    }
    body.page-players .player-filter-row .player-controls {
      margin-left: auto;
    }
  }
  @media (max-width: 600px) {
    body.page-players .player-filter-row {
      gap: 16px;
    }
    body.page-players .player-filter-row .player-controls {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      width: 100%;
    }
    body.page-players .player-filter-row .player-controls select {
      width: 100%;
      font-size: 14px;
      max-width: none;
    }
    body.page-players .player-filter-row .player-controls > div {
      min-width: 0;
    }
  }
  body.page-players .player-leaderboard {
    margin: 36px 0;
    padding: 28px;
    border: 1px solid rgba(229, 242, 74, 0.2);
    border-radius: 16px;
    background: linear-gradient(145deg, #1b2026, #101317);
  }
  body.page-players .player-leaderboard[hidden] {
    display: none;
  }
  body.page-players .leaderboard-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  body.page-players .leaderboard-heading .eyebrow {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #e5f24a;
  }
  body.page-players .leaderboard-heading h2 {
    font-family: "Barlow Condensed", "Google Sans", sans-serif;
    font-size: 28px;
    margin: 8px 0;
  }
  body.page-players .leaderboard-heading > span {
    font-size: 13px;
    color: #a9b2bc;
  }
  body.page-players .leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 22px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
  }
  body.page-players .leaderboard-list a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto 14px;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 14px;
    border: 1px solid rgba(229, 242, 74, 0.1333333333);
    border-radius: 10px;
    text-decoration: none;
    background: rgba(9, 12, 17, 0.4666666667);
  }
  body.page-players .leaderboard-list a:hover {
    border-color: rgba(229, 242, 74, 0.4666666667);
    background: rgba(229, 242, 74, 0.0784313725);
  }
  body.page-players .leaderboard-rank {
    font-weight: 800;
    color: #e5f24a;
  }
  body.page-players .leaderboard-list strong {
    overflow-wrap: anywhere;
    font-size: 14px;
  }
  body.page-players .leaderboard-points {
    font-weight: 700;
    white-space: nowrap;
  }
  body.page-players .leaderboard-points small {
    font-size: 10px;
    color: #a7aaaf;
  }
  body.page-players .leaderboard-list li:first-child .leaderboard-rank {
    color: #f1cd79;
  }
  @media (max-width: 700px) {
    body.page-players .player-leaderboard {
      padding: 20px;
    }
    body.page-players .leaderboard-list {
      grid-template-columns: 1fr;
    }
    body.page-players .leaderboard-heading {
      align-items: start;
      flex-direction: column;
    }
    body.page-players .leaderboard-list a {
      gap: 8px;
      padding: 12px;
    }
    body.page-players .leaderboard-points {
      font-size: 13px;
    }
  }
  body.page-players #share-player-stats {
    cursor: pointer;
    font: 700 14px "Google Sans", sans-serif;
    min-height: 46px;
  }
  body.page-players #share-player-stats:disabled {
    opacity: 0.4;
    cursor: default;
  }
  body.page-players #stats-card-dialog {
    width: min(900px, 100% - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    background: #14171c;
    color: #f4f6f8;
    border: 1px solid rgba(178, 181, 186, 0.4);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6666666667);
  }
  body.page-players #stats-card-dialog::backdrop {
    background: rgba(4, 7, 12, 0.8509803922);
  }
  body.page-players .stats-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  body.page-players .stats-card-heading h2 {
    font-size: 23px;
    margin: 0;
  }
  body.page-players .stats-card-heading button {
    width: 44px;
    height: 44px;
    background: #212429;
    border: 1px solid rgba(229, 242, 74, 0.2666666667);
    border-radius: 9px;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
  }
  body.page-players #stats-card-status {
    font-size: 14px;
    color: #a9b2bc;
    line-height: 1.6;
  }
  body.page-players #stats-card-preview {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
  }
  body.page-players .stats-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
  }
  body.page-players .stats-card-actions button {
    font: 700 14px "Google Sans", sans-serif;
    cursor: pointer;
  }
  body.page-players #stats-card-dialog [hidden] {
    display: none;
  }
  @media (max-width: 600px) {
    body.page-players #stats-card-dialog {
      padding: 18px;
    }
    body.page-players .stats-card-actions > * {
      width: 100%;
      min-height: 48px;
    }
  }
  body.page-players .player-search {
    max-width: none;
    padding: 24px;
    border: 1px solid rgba(229, 242, 74, 0.2);
    border-radius: 18px;
    background: radial-gradient(ellipse at top left, rgba(229, 242, 74, 0.0705882353), transparent 65%), #12161a;
  }
  body.page-players .player-search label {
    font-size: 16px;
  }
  body.page-players .player-search p {
    margin-bottom: 0;
  }
  body.page-players .player-result-heading {
    padding: 28px 0 4px;
    border-top: 1px solid rgba(229, 242, 74, 0.168627451);
  }
  body.page-players .player-result-heading h2 {
    font-family: "Google Sans", sans-serif;
    font-weight: 800;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.04em;
    line-height: 1.15;
  }
  body.page-players .player-totals {
    gap: 14px;
    margin: 24px 0 36px;
  }
  body.page-players .player-totals > div {
    position: relative;
    overflow: hidden;
    padding: 26px 24px;
    border-color: rgba(180, 183, 188, 0.2);
    background: radial-gradient(ellipse at top right, rgba(229, 242, 74, 0.0862745098), transparent 75%), #171b20;
    border-radius: 16px;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  body.page-players .player-totals > div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 24px;
    width: 3px;
    border-radius: 3px;
    background: #e5f24a;
  }
  body.page-players .player-totals > div[data-stat=wins] {
    background: radial-gradient(ellipse at top right, rgba(251, 191, 36, 0.0980392157), transparent 80%), #171b20;
  }
  body.page-players .player-totals > div[data-stat=wins]::before {
    background: #f4c76b;
  }
  body.page-players .player-totals > div[data-stat=wins] strong {
    color: #f4d58e;
  }
  body.page-players .player-totals span {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
  }
  body.page-players .player-totals strong {
    font-size: clamp(28px, 3.2vw, 44px);
    letter-spacing: -0.045em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  body.page-players #player-sizes-heading {
    font-family: "Google Sans", sans-serif;
    font-size: 20px;
    font-weight: 750;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
  }
  body.page-players .player-modes {
    gap: 20px;
  }
  body.page-players .player-modes article {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(140deg, #1b2026, #13171c);
    border-color: rgba(180, 183, 188, 0.1882352941);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.0705882353);
  }
  body.page-players .player-team-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 26px 20px 22px;
    background: radial-gradient(ellipse at center top, rgba(229, 242, 74, 0.1098039216), transparent 75%);
    border-bottom: 1px solid rgba(229, 242, 74, 0.1333333333);
  }
  body.page-players .player-team-avatars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    height: 36px;
    color: #bfc2c7;
  }
  body.page-players .player-team-avatars svg {
    width: 27px;
    height: 32px;
    fill: currentColor;
    filter: drop-shadow(0 0 10px rgba(229, 242, 74, 0.1490196078));
  }
  body.page-players .player-team-avatars svg:nth-child(even) {
    color: #d5d8dd;
  }
  body.page-players .player-modes h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.02em;
  }
  body.page-players .player-mode-numbers {
    padding: 24px 20px;
    gap: 12px;
    text-align: center;
  }
  body.page-players .player-mode-numbers > div {
    min-width: 0;
  }
  body.page-players .player-mode-numbers span {
    font-size: 12px;
    margin-bottom: 10px;
  }
  body.page-players .player-mode-numbers strong {
    font-size: 23px;
    font-weight: 750;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
  }
  body.page-players .player-mode-numbers [data-stat=wins] strong {
    color: #f4d58e;
  }
  body.page-players .player-modes article > .player-scope {
    text-align: center;
    padding: 8px 20px 16px;
  }
  @media (max-width: 700px) {
    body.page-players .player-search {
      padding: 20px;
    }
    body.page-players .player-totals > div {
      padding: 22px 20px;
      min-height: 112px;
    }
    body.page-players .player-totals strong {
      font-size: 32px;
    }
    body.page-players .player-totals > div:last-child {
      grid-column: 1/-1;
    }
    body.page-players .player-team-heading {
      padding: 22px 16px 18px;
    }
    body.page-players .player-mode-numbers {
      grid-template-columns: repeat(5, minmax(0, 1fr));
      padding: 22px 12px;
      gap: 6px;
    }
    body.page-players .player-mode-numbers strong {
      font-size: 19px;
    }
    body.page-players .player-mode-numbers span {
      font-size: 11px;
    }
    body.page-players .player-result-heading {
      margin-top: 28px;
    }
    body.page-players .player-result-heading #share-player-stats {
      align-self: flex-start;
    }
  }
  @media (min-width: 601px) and (max-width: 700px) {
    body.page-players .player-totals {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  body.page-players .player-exclude {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-height: 44px;
    color: #c5c8cd;
    font-size: 14px;
    cursor: pointer;
  }
  body.page-players .player-exclude input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #a6a9ae;
    cursor: pointer;
  }
  body.page-players .player-exclude[hidden] {
    display: none;
  }
  body.page-players .player-team-heading {
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    text-align: left;
  }
  body.page-players .player-team-heading h4 {
    order: -1;
    font-size: 18px;
  }
  body.page-players .player-team-avatars {
    height: 26px;
    gap: 4px;
  }
  body.page-players .player-team-avatars svg {
    width: 19px;
    height: 24px;
  }
  @media (max-width: 700px) {
    body.page-players .player-team-heading {
      padding: 16px 18px;
    }
    body.page-players .player-team-heading h4 {
      font-size: 17px;
    }
  }
  body.page-players .player-recent-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0 0 32px;
  }
  body.page-players .player-recent-stats article {
    background: #171b20;
    border: 1px solid rgba(255, 255, 255, 0.0862745098);
    border-radius: 12px;
    padding: 24px;
  }
  body.page-players .player-recent-stats h3 {
    margin: 0;
    font-size: 21px;
  }
  body.page-players .player-recent-stats .player-mode-numbers {
    padding: 16px 0 0;
  }
  body.page-players .stat-trend {
    display: block;
    margin-top: 10px;
    color: #96a1ad;
    font-size: 11px;
    line-height: 1.4;
  }
  body.page-players .stat-trend[data-direction=up] {
    color: #6fdbab;
  }
  body.page-players .stat-trend[data-direction=down] {
    color: #ff9393;
  }
  @media (max-width: 1000px) {
    body.page-players .player-recent-stats {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 600px) {
    body.page-players .player-recent-stats article {
      padding: 18px;
    }
    body.page-players .player-recent-stats .player-mode-numbers {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 20px 10px;
    }
  }
}

@layer tools {
  body.page-shop .shop-main {
    padding: 0 32px 32px;
  }
  body.page-shop .shop-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  body.page-shop .shop-intro h2, body.page-shop .shop-section > h2 {
    font-family: "Barlow Condensed", "Google Sans", sans-serif;
    font-weight: 400;
    font-size: 28px;
    margin: 0 0 12px;
  }
  body.page-shop .shop-intro p, body.page-shop .shop-note, body.page-shop #shop-status {
    font-size: 14px;
    line-height: 1.7;
    color: #a9b2bc;
  }
  body.page-shop .shop-type-tabs {
    display: flex;
    gap: 8px;
    overflow: auto;
    margin: 24px 0;
  }
  body.page-shop .shop-type-tabs button {
    flex: none;
    border: 1px solid rgba(229, 242, 74, 0.2509803922);
    border-radius: 10px;
    background: #171b20;
    padding: 12px 20px;
    color: #c2c9d0;
    font: 600 14px "Google Sans", sans-serif;
    min-height: 44px;
    cursor: pointer;
  }
  body.page-shop .shop-type-tabs button[aria-pressed=true] {
    background: linear-gradient(110deg, #e5f24a, #c8df36);
    color: white;
    border-color: transparent;
  }
  body.page-shop .shop-filters {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
  }
  body.page-shop .shop-filters label {
    display: grid;
    gap: 10px;
    font-size: 14px;
    color: #c2c9d0;
  }
  body.page-shop .shop-filters input, body.page-shop .shop-filters select {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(229, 242, 74, 0.2509803922);
    border-radius: 10px;
    background-color: #171b20;
    color: #fff;
    font: inherit;
    padding: 14px 16px;
    min-height: 50px;
  }
  body.page-shop .shop-section {
    margin: 28px 0 36px;
  }
  body.page-shop .shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
  body.page-shop .shop-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    border: 1px solid rgba(229, 242, 74, 0.2117647059);
    border-radius: 16px;
    overflow: hidden;
    background: radial-gradient(ellipse at top, rgba(229, 242, 74, 0.1098039216), transparent 75%), #171b20;
    color: #f4f6f8;
    cursor: pointer;
    padding: 0;
    font-family: "Google Sans", sans-serif;
    transition: border-color 0.2s, transform 0.2s;
  }
  body.page-shop .shop-card:hover {
    border-color: #e5f24a;
    transform: translateY(-3px);
  }
  body.page-shop .shop-card > img {
    width: 100%;
    height: 210px;
    object-fit: contain;
  }
  body.page-shop .shop-card-body {
    padding: 18px;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    border-top: 1px solid rgba(229, 242, 74, 0.0980392157);
  }
  body.page-shop .shop-card h3 {
    font-size: 16px;
    line-height: 1.45;
    margin: 0 0 14px;
  }
  body.page-shop .shop-price {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    color: #e5f24a;
    font-size: 14px;
  }
  body.page-shop .shop-price del {
    font-size: 11px;
    color: #9c9fa4;
  }
  body.page-shop .shop-badge {
    display: block;
    color: #b1b4b9;
    font-size: 11px;
    margin-top: 10px;
  }
  body.page-shop .shop-note {
    margin-top: 28px;
  }
  body.page-shop #shop-dialog {
    position: relative;
    background: #171b20;
    color: #f4f6f8;
    border: 1px solid rgba(229, 242, 74, 0.5019607843);
    border-radius: 20px;
    width: min(650px, 100% - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: 28px;
  }
  body.page-shop #shop-dialog::backdrop {
    background: rgba(4, 7, 12, 0.8509803922);
  }
  body.page-shop .shop-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(229, 242, 74, 0.3333333333);
    background: #1f2227;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
  }
  body.page-shop #shop-detail-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
  }
  body.page-shop #shop-detail-price {
    font-size: 23px;
    font-weight: 750;
    color: #e5f24a;
  }
  body.page-shop #shop-detail-leaves {
    color: #b7babf;
    font-size: 13px;
  }
  body.page-shop #shop-detail-items {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }
  body.page-shop #shop-detail-items li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
  }
  body.page-shop #shop-detail-items img {
    width: 54px;
    height: 54px;
    object-fit: contain;
  }
  body.page-shop .shop-card:focus-visible, body.page-shop .shop-type-tabs button:focus-visible {
    outline: 2px solid #e5f24a;
    outline-offset: 3px;
  }
  @media (max-width: 600px) {
    body.page-shop .shop-main {
      padding: 0 20px 24px;
    }
    body.page-shop .shop-intro {
      align-items: flex-start;
      flex-direction: column;
    }
    body.page-shop .shop-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    body.page-shop .shop-card > img {
      height: 150px;
    }
    body.page-shop .shop-card-body {
      padding: 14px;
    }
    body.page-shop .shop-card h3 {
      font-size: 14px;
    }
    body.page-shop .shop-price {
      font-size: 12px;
    }
    body.page-shop .shop-filters {
      grid-template-columns: 1fr;
    }
    body.page-shop .shop-intro h2, body.page-shop .shop-section > h2 {
      font-size: 25px;
    }
    body.page-shop #shop-dialog {
      padding: 22px;
    }
    body.page-shop #shop-detail-image {
      height: 240px;
    }
    body.page-shop #shop-detail-items {
      grid-template-columns: 1fr;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    body.page-shop .shop-card {
      transition: none;
    }
    body.page-shop .shop-card:hover {
      transform: none;
    }
  }
  body.page-shop .shop-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
  }
  body.page-shop .shop-card-body {
    height: 154px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
  }
  body.page-shop .shop-card > img {
    flex-shrink: 0;
  }
  body.page-shop .shop-price {
    margin-top: auto;
  }
  body.page-shop .shop-badge {
    min-height: 14px;
  }
  @media (max-width: 600px) {
    body.page-shop .shop-card-body {
      height: 140px;
    }
  }
}

@layer tools {
  body.page-sprites * {
    box-sizing: border-box;
  }
  body.page-sprites button, body.page-sprites input, body.page-sprites select {
    font: inherit;
  }
  body.page-sprites button, body.page-sprites .file-button {
    cursor: pointer;
    border: 1px solid #474a4f;
    background: #23262b;
    color: #f7f3ff;
    border-radius: 8px;
    padding: 10px 13px;
    font-size: 12px;
  }
  body.page-sprites button:hover, body.page-sprites .file-button:hover {
    border-color: #d5fc75;
  }
  body.page-sprites button:disabled {
    opacity: 0.5;
    cursor: wait;
  }
  body.page-sprites input, body.page-sprites select {
    background: #1a1d22;
    color: #f7f3ff;
    border: 1px solid #474a4f;
    border-radius: 7px;
    padding: 10px;
    width: 100%;
    min-width: 0;
  }
  body.page-sprites label {
    display: grid;
    gap: 8px;
    color: #b6b9be;
    font-size: 12px;
  }
  body.page-sprites .tracker {
    max-width: 1180px;
    margin: 46px auto;
    padding: 0 28px;
  }
  body.page-sprites .tracker h1 {
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 850;
    letter-spacing: -1.5px;
    margin: 0 0 14px;
  }
  body.page-sprites .tracker-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
  }
  body.page-sprites .tracker-toolbar label {
    min-width: 240px;
  }
  body.page-sprites .save-note {
    color: #d5fc75;
    font-size: 12px;
    padding: 10px 0;
  }
  body.page-sprites .storage-note {
    font-size: 12px;
    color: #a9acb1;
    line-height: 1.6;
  }
  body.page-sprites #notice {
    font-size: 13px;
    color: #d5fc75;
    min-height: 20px;
  }
  body.page-sprites #notice.error {
    color: #ffb4a4;
  }
  body.page-sprites .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 24px 0;
  }
  body.page-sprites .stats > div {
    padding: 23px;
    background: linear-gradient(130deg, #26292e, #181b20);
    border: 1px solid #3a3d42;
    border-radius: 12px;
  }
  body.page-sprites .stats span {
    color: #b6b9be;
    font-size: 10px;
    letter-spacing: 1.4px;
  }
  body.page-sprites .stats strong {
    display: block;
    font-size: 30px;
    margin: 10px 0 12px;
    letter-spacing: -1px;
  }
  body.page-sprites .stats progress {
    display: block;
    width: 100%;
    height: 5px;
    accent-color: #d5fc75;
    border: 0;
    border-radius: 9px;
    overflow: hidden;
  }
  body.page-sprites .stats progress::-webkit-progress-bar {
    background: #373a3f;
  }
  body.page-sprites .stats progress::-webkit-progress-value {
    background: #d5fc75;
  }
  body.page-sprites .stats > div:last-child progress::-webkit-progress-value {
    background: #e7b756;
  }
  body.page-sprites .filters {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.0941176471);
  }
  body.page-sprites .filters label {
    flex: 1;
    min-width: 125px;
  }
  body.page-sprites .filters label:first-child {
    flex: 1.6;
  }
  body.page-sprites .filters button {
    white-space: nowrap;
    height: 38px;
  }
  body.page-sprites #compact[aria-pressed=true] {
    border-color: #d5fc75;
    color: #d5fc75;
  }
  body.page-sprites .checklist-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
  }
  body.page-sprites .checklist-heading h2 {
    font-size: 17px;
    margin: 0;
  }
  body.page-sprites .checklist-heading span {
    font-size: 11px;
    color: #b6b9be;
  }
  body.page-sprites .sprites-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  body.page-sprites .sprite-card {
    border: 1px solid #3a3d42;
    border-radius: 12px;
    background: #1a1d22;
    overflow: hidden;
  }
  body.page-sprites .sprite-info {
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.0431372549);
  }
  body.page-sprites .sprite-info h3 {
    font-size: 16px;
    margin: 0 0 5px;
  }
  body.page-sprites .sprite-info p {
    font-size: 11px;
    color: #a9acb1;
    line-height: 1.5;
    margin: 0;
  }
  body.page-sprites .variants-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
    gap: 8px;
    padding: 14px;
  }
  body.page-sprites .variant-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 8px 4px;
    background: #24272c;
    border-color: #42454a;
    transition: border-color 0.15s;
  }
  body.page-sprites .variant-button img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    max-width: 100%;
    filter: grayscale(0.8);
    opacity: 0.65;
  }
  body.page-sprites .variant-button .variant-label {
    font-size: 10px;
    text-align: center;
    overflow-wrap: anywhere;
  }
  body.page-sprites .variant-button .state-label {
    font-size: 10px;
    color: #a5a8ad;
  }
  body.page-sprites .variant-button[data-state="1"] {
    border-color: rgba(213, 252, 117, 0.5019607843);
    background: rgba(213, 252, 117, 0.0352941176);
  }
  body.page-sprites .variant-button[data-state="2"] {
    border-color: #e7b756;
    background: rgba(231, 183, 86, 0.0705882353);
  }
  body.page-sprites .variant-button[data-state="1"] .state-label {
    color: #d5fc75;
  }
  body.page-sprites .variant-button[data-state="2"] .state-label {
    color: #e7b756;
  }
  body.page-sprites .variant-button[data-state="1"] img, body.page-sprites .variant-button[data-state="2"] img {
    filter: none;
    opacity: 1;
  }
  body.page-sprites .sprite-card[hidden], body.page-sprites .variant-button[hidden], body.page-sprites [hidden] {
    display: none;
  }
  body.page-sprites .compact .variants-row {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  }
  body.page-sprites .compact .variant-button img {
    display: none;
  }
  body.page-sprites .compact .variant-button {
    padding: 12px 3px;
  }
  body.page-sprites .backup-tools {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.0941176471);
    padding-top: 24px;
  }
  body.page-sprites .file-button {
    display: inline-flex;
    align-items: center;
  }
  body.page-sprites .file-button input {
    width: 1px;
    height: 1px;
    padding: 0;
    position: absolute;
    opacity: 0;
  }
  body.page-sprites .file-button:focus-within {
    outline: 3px solid #d5fc75;
  }
  body.page-sprites #copy-output {
    width: 100%;
    background: #1a1d22;
    color: #f7f3ff;
    border: 1px solid #474a4f;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
  }
  body.page-sprites .site-footer a {
    color: #d5fc75;
  }
  body.page-sprites .site-footer .brand {
    color: #f7f3ff;
  }
  @media (max-width: 950px) {
    body.page-sprites .sprites-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 580px) {
    body.page-sprites .tracker {
      padding: 0 16px;
      margin-top: 28px;
    }
    body.page-sprites .sprites-grid {
      grid-template-columns: 1fr;
    }
    body.page-sprites .stats {
      gap: 10px;
    }
    body.page-sprites .stats > div {
      padding: 16px;
    }
    body.page-sprites .stats strong {
      font-size: 24px;
    }
    body.page-sprites .tracker-toolbar, body.page-sprites .checklist-heading {
      align-items: start;
      flex-direction: column;
      gap: 6px;
    }
    body.page-sprites .tracker-toolbar label {
      width: 100%;
    }
    body.page-sprites .checklist-heading span {
      line-height: 1.7;
    }
    body.page-sprites .filters label {
      min-width: 42%;
    }
    body.page-sprites .filters label:first-child {
      flex-basis: 100%;
    }
    body.page-sprites .intro {
      font-size: 14px;
    }
    body.page-sprites .save-note {
      padding: 5px 0;
    }
  }
  body.page-sprites .sprite-portrait, body.page-sprites .variant-dot {
    display: none;
  }
  body.page-sprites .compact .sprite-card {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    background: linear-gradient(180deg, #202328, #171a1f);
  }
  body.page-sprites .compact .sprite-portrait {
    grid-row: 1/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(180, 183, 188, 0.168627451), transparent 75%), linear-gradient(160deg, rgba(180, 183, 188, 0.0705882353), rgba(213, 252, 117, 0.0196078431));
    border-right: 1px solid #3a3d42;
  }
  body.page-sprites .compact .sprite-portrait img {
    width: 140%;
    max-width: none;
    flex-shrink: 0;
    height: 120px;
    padding: 8px 14px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3333333333));
  }
  body.page-sprites .compact .sprite-info {
    padding: 16px 14px 8px;
    border: 0;
  }
  body.page-sprites .compact .sprite-info h3 {
    font-size: 16px;
    margin: 0;
    line-height: 1.4;
  }
  body.page-sprites .compact .sprite-info p {
    display: none;
  }
  body.page-sprites .compact .variants-row {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 12px 5px;
    padding: 8px 10px 16px;
    align-content: start;
    min-width: 0;
  }
  body.page-sprites .compact .variant-button {
    --variant-color: #b8bfd1;
    padding: 0;
    border: 0;
    border-radius: 0;
    gap: 8px;
    justify-content: start;
    background: transparent;
    box-shadow: none;
  }
  body.page-sprites .compact .variant-button .state-label {
    display: none;
  }
  body.page-sprites .compact .variant-dot {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(178, 181, 186, 0.3019607843);
    font-size: 18px;
    line-height: 1;
    color: var(--variant-color);
  }
  body.page-sprites .compact .variant-label {
    color: #b6b9be;
    font-size: 10px;
    line-height: 1.2;
    overflow-wrap: normal;
  }
  body.page-sprites .compact .variant-button[data-state="1"] .variant-dot {
    background: color-mix(in srgb, var(--variant-color) 20%, transparent);
    border-color: var(--variant-color);
    box-shadow: 0 0 12px color-mix(in srgb, var(--variant-color) 16%, transparent);
  }
  body.page-sprites .compact .variant-button[data-state="2"] .variant-dot {
    background: var(--variant-color);
    border-color: var(--variant-color);
    color: #14213a;
    box-shadow: 0 0 12px color-mix(in srgb, var(--variant-color) 20%, transparent);
  }
  body.page-sprites .compact .variant-button:not([data-state="0"]) .variant-label {
    color: var(--variant-color);
  }
  body.page-sprites .compact .variant-button:hover .variant-dot {
    border-color: var(--variant-color);
  }
  body.page-sprites .compact .variant-button[data-variant=gold], body.page-sprites .compact .variant-button[data-variant=liquidgold] {
    --variant-color: #f5b82e;
  }
  body.page-sprites .compact .variant-button[data-variant=cursed], body.page-sprites .compact .variant-button[data-variant=cheatmaster] {
    --variant-color: #4ade80;
  }
  body.page-sprites .compact .variant-button[data-variant=jeweled] {
    --variant-color: #ef805e;
  }
  body.page-sprites .compact .variant-button[data-variant=loothacker] {
    --variant-color: #a8abb0;
  }
  body.page-sprites .compact .variant-button[data-variant=reaper], body.page-sprites .compact .variant-button[data-variant=cube] {
    --variant-color: #a4a7ac;
  }
  body.page-sprites .compact .variant-button[data-variant=tricktreat] {
    --variant-color: #ff7b29;
  }
  body.page-sprites .compact .variant-button[data-variant=quack] {
    --variant-color: #22d3ee;
  }
  body.page-sprites .compact .variant-button[data-variant=candy], body.page-sprites .compact .variant-button[data-variant=gummy] {
    --variant-color: #a8abb0;
  }
  body.page-sprites .compact .variant-button[data-variant=galaxy] {
    --variant-color: #9a9da2;
  }
  body.page-sprites .compact .variant-button[data-variant=holofoil] {
    --variant-color: #d2d5da;
  }
  body.page-sprites .compact .variant-button[data-variant=gem] {
    --variant-color: #a3e2f7;
  }
  @media (max-width: 1100px) {
    body.page-sprites .sprites-grid.compact {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 700px) {
    body.page-sprites .sprites-grid.compact {
      grid-template-columns: 1fr;
    }
    body.page-sprites .compact .sprite-card {
      grid-template-columns: 56px minmax(0, 1fr);
    }
  }
  body.page-sprites .sprite-heading {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  body.page-sprites .sprite-heading h3 {
    margin: 0;
    min-width: 0;
  }
  body.page-sprites .sprite-info-button {
    display: grid;
    place-items: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(169, 172, 177, 0.4);
    background: transparent;
    color: #c6c9ce;
    font-family: Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
  }
  body.page-sprites .sprite-info-button:hover {
    color: #d5fc75;
    border-color: #d5fc75;
  }
  body.page-sprites #sprite-info-dialog {
    width: min(440px, 100% - 32px);
    padding: 24px;
    border: 1px solid #4f5257;
    border-radius: 16px;
    background: #202328;
    color: #f7f3ff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5333333333);
  }
  body.page-sprites #sprite-info-dialog::backdrop {
    background: rgba(8, 11, 16, 0.6666666667);
    backdrop-filter: blur(4px);
  }
  body.page-sprites .sprite-dialog-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
  }
  body.page-sprites .sprite-dialog-heading h2 {
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-weight: 400;
    letter-spacing: 0.3px;
    font-size: 26px;
    margin: 0;
    line-height: 1.2;
  }
  body.page-sprites #sprite-info-close {
    font-size: 24px;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    background: transparent;
    border-color: #4f5257;
  }
  body.page-sprites .sprite-rarity {
    color: #aaa3b8;
    font-size: 12px;
    margin: 22px 0 14px;
  }
  body.page-sprites .sprite-rarity strong {
    display: inline-block;
    margin-left: 8px;
    padding: 5px 10px;
    border: 1px solid rgba(213, 252, 117, 0.2509803922);
    border-radius: 6px;
    color: #d5fc75;
    font-weight: 600;
  }
  body.page-sprites #sprite-info-description {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    color: #ded7e8;
  }
  body.page-sprites #sprite-info-image {
    display: block;
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 20px auto 8px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3333333333));
    background: radial-gradient(ellipse, rgba(180, 183, 188, 0.1215686275), transparent 70%);
  }
  body.page-sprites .sprites-grid:not(.compact) .variants-row {
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  }
}

@layer tools {
  body.page-weapons .weapon-main, body.page-loadout .weapon-main {
    padding: 0 32px 32px;
  }
  body.page-weapons .weapon-main h2, body.page-loadout .weapon-main h2 {
    font-family: "Barlow Condensed", "Google Sans", sans-serif;
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 18px;
  }
  body.page-weapons .weapon-main button, body.page-loadout .weapon-main button {
    font: 600 13px "Google Sans", sans-serif;
    color: #f5ecff;
    cursor: pointer;
    padding: 11px 14px;
    border-radius: 9px;
    border: 1px solid rgba(229, 242, 74, 0.2666666667);
    background: #212429;
    min-height: 44px;
  }
  body.page-weapons .weapon-main button:hover, body.page-loadout .weapon-main button:hover {
    border-color: #e5f24a;
  }
  body.page-weapons .weapon-main button:disabled, body.page-loadout .weapon-main button:disabled {
    opacity: 0.5;
    cursor: default;
  }
  body.page-weapons .weapon-main button[aria-pressed=true], body.page-loadout .weapon-main button[aria-pressed=true] {
    background: linear-gradient(110deg, rgba(229, 242, 74, 0.2666666667), rgba(200, 223, 54, 0.2));
    border-color: #e5f24a;
  }
  body.page-weapons .weapon-comparison, body.page-loadout .weapon-comparison {
    padding: 28px;
    margin-bottom: 36px;
    background: linear-gradient(145deg, #1b2026, #101317);
    border: 1px solid rgba(229, 242, 74, 0.2);
    border-radius: 16px;
  }
  body.page-weapons .weapon-section-heading, body.page-loadout .weapon-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
  }
  body.page-weapons .weapon-section-heading h2, body.page-loadout .weapon-section-heading h2 {
    margin: 0;
  }
  body.page-weapons .weapon-comparison > p, body.page-weapons .weapon-note, body.page-weapons #weapon-status, body.page-loadout .weapon-comparison > p, body.page-loadout .weapon-note, body.page-loadout #weapon-status {
    font-size: 13px;
    line-height: 1.7;
    color: #b3b6bb;
  }
  body.page-weapons .comparison-heads, body.page-loadout .comparison-heads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
  }
  body.page-weapons .comparison-pick, body.page-loadout .comparison-pick {
    min-width: 0;
    text-align: center;
    background: rgba(6, 9, 14, 0.4);
    border-radius: 12px;
    padding: 20px;
  }
  body.page-weapons .weapon-eyebrow, body.page-loadout .weapon-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #e5f24a;
  }
  body.page-weapons .weapon-summary img, body.page-loadout .weapon-summary img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-top: 12px;
  }
  body.page-weapons .weapon-summary h3, body.page-loadout .weapon-summary h3 {
    margin: 10px 0;
    font-size: 20px;
    overflow-wrap: anywhere;
  }
  body.page-weapons .weapon-summary p, body.page-loadout .weapon-summary p {
    font-size: 12px;
    color: #acafb4;
    line-height: 1.7;
  }
  body.page-weapons .comparison-row, body.page-loadout .comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.0470588235);
    padding: 14px 0;
    gap: 12px;
  }
  body.page-weapons .comparison-label, body.page-loadout .comparison-label {
    grid-column: 1/-1;
    font-size: 12px;
    color: #b4b7bc;
  }
  body.page-weapons .comparison-row strong, body.page-loadout .comparison-row strong {
    font-size: 23px;
  }
  body.page-weapons .stat-better, body.page-loadout .stat-better {
    color: #7de4b2;
  }
  body.page-weapons .weapon-filters, body.page-loadout .weapon-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  body.page-weapons .weapon-filters label, body.page-loadout .weapon-filters label {
    display: grid;
    gap: 8px;
    font-size: 13px;
    color: #c6c9ce;
  }
  body.page-weapons .weapon-filters input, body.page-weapons .weapon-filters select, body.page-loadout .weapon-filters input, body.page-loadout .weapon-filters select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    background-color: #171b20;
    color: #fff;
    border: 1px solid rgba(229, 242, 74, 0.2666666667);
    border-radius: 9px;
    padding: 12px;
    font: inherit;
  }
  body.page-weapons .weapon-grid, body.page-loadout .weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 24px;
  }
  body.page-weapons .weapon-card, body.page-loadout .weapon-card {
    --rarity: #aaa;
    padding: 20px;
    border: 1px solid rgba(229, 242, 74, 0.1803921569);
    border-top: 3px solid var(--rarity);
    border-radius: 12px;
    background: linear-gradient(145deg, #1b2026, #101317);
    min-width: 0;
  }
  body.page-weapons .weapon-card > img, body.page-loadout .weapon-card > img {
    width: 100%;
    height: 110px;
    object-fit: contain;
  }
  body.page-weapons .weapon-card h3, body.page-loadout .weapon-card h3 {
    font-size: 17px;
    line-height: 1.4;
    margin: 14px 0 6px;
  }
  body.page-weapons .weapon-card-stats, body.page-loadout .weapon-card-stats {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: #c3c6cb;
    margin: 20px 0;
  }
  body.page-weapons .weapon-card-actions, body.page-loadout .weapon-card-actions {
    display: flex;
    gap: 8px;
  }
  body.page-weapons .weapon-card-actions button, body.page-loadout .weapon-card-actions button {
    flex: 1;
    padding: 10px 8px;
  }
  body.page-weapons .rarity-uncommon, body.page-loadout .rarity-uncommon {
    --rarity: #69d58b;
  }
  body.page-weapons .rarity-rare, body.page-loadout .rarity-rare {
    --rarity: #69afff;
  }
  body.page-weapons .rarity-epic, body.page-loadout .rarity-epic {
    --rarity: #c584ff;
  }
  body.page-weapons .rarity-legendary, body.page-loadout .rarity-legendary {
    --rarity: #ffb45f;
  }
  body.page-weapons .rarity-mythic, body.page-loadout .rarity-mythic {
    --rarity: #f6dc78;
  }
  body.page-weapons .rarity-exotic, body.page-loadout .rarity-exotic {
    --rarity: #64e4e4;
  }
  body.page-weapons .weapon-summary, body.page-loadout .weapon-summary {
    border-bottom: 2px solid var(--rarity, rgba(229, 242, 74, 0.3333333333));
    margin-bottom: 12px;
    padding-bottom: 8px;
  }
  @media (min-width: 1000px) {
    body.page-weapons #weapon-comparison, body.page-loadout #weapon-comparison {
      max-width: 1050px;
      margin: auto;
    }
    body.page-weapons .comparison-row, body.page-loadout .comparison-row {
      grid-template-columns: 1fr 1fr;
    }
    body.page-weapons .weapon-filters, body.page-loadout .weapon-filters {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }
  }
  @media (max-width: 600px) {
    body.page-weapons .weapon-main, body.page-loadout .weapon-main {
      padding: 0 20px 24px;
    }
    body.page-weapons .weapon-comparison, body.page-loadout .weapon-comparison {
      padding: 20px 12px;
    }
    body.page-weapons .weapon-section-heading, body.page-loadout .weapon-section-heading {
      padding: 0 8px;
    }
    body.page-weapons .weapon-main h2, body.page-loadout .weapon-main h2 {
      font-size: 24px;
    }
    body.page-weapons .comparison-heads, body.page-loadout .comparison-heads {
      gap: 10px;
    }
    body.page-weapons .comparison-pick, body.page-loadout .comparison-pick {
      padding: 14px 8px;
    }
    body.page-weapons .weapon-summary img, body.page-loadout .weapon-summary img {
      height: 95px;
    }
    body.page-weapons .weapon-summary h3, body.page-loadout .weapon-summary h3 {
      font-size: 16px;
    }
    body.page-weapons .weapon-summary p, body.page-loadout .weapon-summary p {
      font-size: 11px;
    }
    body.page-weapons .comparison-row strong, body.page-loadout .comparison-row strong {
      font-size: 20px;
    }
    body.page-weapons .weapon-filters, body.page-loadout .weapon-filters {
      grid-template-columns: 1fr 1fr;
      gap: 14px 10px;
    }
    body.page-weapons .weapon-filters input, body.page-weapons .weapon-filters select, body.page-loadout .weapon-filters input, body.page-loadout .weapon-filters select {
      font-size: 16px;
    }
    body.page-weapons .weapon-grid, body.page-loadout .weapon-grid {
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }
    body.page-weapons .weapon-card, body.page-loadout .weapon-card {
      padding: 14px 10px;
    }
    body.page-weapons .weapon-card h3, body.page-loadout .weapon-card h3 {
      font-size: 15px;
    }
    body.page-weapons .weapon-card > img, body.page-loadout .weapon-card > img {
      height: 80px;
    }
    body.page-weapons .weapon-card-actions, body.page-loadout .weapon-card-actions {
      flex-direction: column;
    }
    body.page-weapons .weapon-card-stats, body.page-loadout .weapon-card-stats {
      flex-direction: column;
      gap: 6px;
    }
    body.page-weapons .weapon-section-heading button, body.page-loadout .weapon-section-heading button {
      font-size: 12px;
      padding: 10px;
    }
  }
  body.page-weapons .weapon-main, body.page-loadout .weapon-main {
    padding-bottom: 150px;
  }
  body.page-weapons .weapon-drawer, body.page-loadout .weapon-drawer {
    position: fixed;
    z-index: 60;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1040px, 100% - 40px);
    border: 1px solid rgba(178, 181, 186, 0.4666666667);
    border-radius: 16px;
    background: rgba(19, 22, 27, 0.9607843137);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7333333333), 0 0 30px rgba(229, 242, 74, 0.0980392157);
    backdrop-filter: blur(18px);
    overflow: hidden;
  }
  body.page-weapons .weapon-main .comparison-toggle, body.page-loadout .weapon-main .comparison-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    border: 0;
    border-radius: 0;
    background: linear-gradient(110deg, rgba(229, 242, 74, 0.1098039216), rgba(200, 223, 54, 0.0705882353));
    padding: 14px 20px;
    min-height: 68px;
    text-align: left;
  }
  body.page-weapons .comparison-toggle #comparison-preview, body.page-loadout .comparison-toggle #comparison-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  body.page-weapons .comparison-toggle #comparison-preview > span, body.page-loadout .comparison-toggle #comparison-preview > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.page-weapons .comparison-toggle img, body.page-loadout .comparison-toggle img {
    width: 42px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
  }
  body.page-weapons #comparison-toggle-label, body.page-loadout #comparison-toggle-label {
    color: #d6d9de;
    white-space: nowrap;
    font-size: 12px;
  }
  body.page-weapons #comparison-panel, body.page-loadout #comparison-panel {
    max-height: 75dvh;
    overflow: auto;
    overscroll-behavior: contain;
  }
  body.page-weapons #comparison-panel[hidden], body.page-loadout #comparison-panel[hidden] {
    display: none;
  }
  body.page-weapons .weapon-drawer .weapon-comparison, body.page-loadout .weapon-drawer .weapon-comparison {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: none;
    padding: 20px 26px 26px;
  }
  body.page-weapons .weapon-drawer .comparison-heads, body.page-loadout .weapon-drawer .comparison-heads {
    margin-top: 12px;
  }
  body.page-weapons .weapon-drawer .weapon-summary img, body.page-loadout .weapon-drawer .weapon-summary img {
    height: 100px;
  }
  body.page-weapons .weapon-drawer .comparison-pick > button, body.page-loadout .weapon-drawer .comparison-pick > button {
    margin: 4px;
  }
  body.page-weapons .weapon-drawer .comparison-row, body.page-loadout .weapon-drawer .comparison-row {
    padding: 10px 0;
  }
  body.page-weapons .weapon-drawer .weapon-summary p, body.page-loadout .weapon-drawer .weapon-summary p {
    margin: 8px 0;
  }
  body.page-weapons .weapon-drawer .weapon-note, body.page-loadout .weapon-drawer .weapon-note {
    font-size: 11px;
  }
  body.page-weapons .weapon-card-actions button, body.page-loadout .weapon-card-actions button {
    width: 100%;
  }
  body.page-weapons #comparison-feedback, body.page-loadout #comparison-feedback {
    font-size: 12px;
    color: #c1c4c9;
    margin: 12px 0;
  }
  @media (max-width: 600px) {
    body.page-weapons .weapon-drawer, body.page-loadout .weapon-drawer {
      bottom: 10px;
      width: calc(100% - 20px);
      border-radius: 13px;
    }
    body.page-weapons .weapon-main .comparison-toggle, body.page-loadout .weapon-main .comparison-toggle {
      padding: 12px;
      gap: 10px;
      font-size: 12px;
    }
    body.page-weapons .comparison-toggle #comparison-preview, body.page-loadout .comparison-toggle #comparison-preview {
      gap: 5px;
    }
    body.page-weapons .comparison-toggle img, body.page-loadout .comparison-toggle img {
      width: 28px;
      height: 30px;
    }
    body.page-weapons .weapon-drawer .weapon-comparison, body.page-loadout .weapon-drawer .weapon-comparison {
      padding: 16px 12px 24px;
    }
    body.page-weapons .weapon-drawer .weapon-summary img, body.page-loadout .weapon-drawer .weapon-summary img {
      height: 65px;
    }
    body.page-weapons .weapon-drawer .weapon-summary p, body.page-loadout .weapon-drawer .weapon-summary p {
      font-size: 10px;
    }
    body.page-weapons .weapon-drawer .weapon-summary h3, body.page-loadout .weapon-drawer .weapon-summary h3 {
      font-size: 14px;
    }
    body.page-weapons .weapon-drawer .comparison-pick, body.page-loadout .weapon-drawer .comparison-pick {
      padding: 12px 6px;
    }
    body.page-weapons .weapon-drawer .comparison-pick > button, body.page-loadout .weapon-drawer .comparison-pick > button {
      padding: 8px;
      min-height: 40px;
      font-size: 12px;
    }
    body.page-weapons .weapon-drawer .comparison-row strong, body.page-loadout .weapon-drawer .comparison-row strong {
      font-size: 19px;
    }
    body.page-weapons #comparison-panel, body.page-loadout #comparison-panel {
      max-height: 75dvh;
    }
    body.page-weapons .weapon-drawer .weapon-section-heading h2, body.page-loadout .weapon-drawer .weapon-section-heading h2 {
      font-size: 22px;
    }
  }
  body.page-weapons .comparison-pick > label, body.page-loadout .comparison-pick > label {
    display: block;
    margin-bottom: 10px;
  }
  body.page-weapons .comparison-pick > select, body.page-loadout .comparison-pick > select {
    display: block;
    width: 100%;
    min-width: 0;
    background-color: #171b20;
    color: #fff;
    border: 1px solid rgba(229, 242, 74, 0.2666666667);
    border-radius: 9px;
    padding: 11px 48px 11px 12px;
    font: inherit;
    font-size: 13px;
    text-overflow: ellipsis;
  }
  @media (max-width: 600px) {
    body.page-weapons .comparison-pick > select, body.page-loadout .comparison-pick > select {
      font-size: 16px;
      padding-left: 8px;
    }
  }
  body.page-weapons .weapon-drawer .comparison-heads, body.page-weapons .weapon-drawer .comparison-row, body.page-loadout .weapon-drawer .comparison-heads, body.page-loadout .weapon-drawer .comparison-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.page-weapons .weapon-drawer .comparison-label, body.page-loadout .weapon-drawer .comparison-label {
    grid-column: 1/-1;
  }
  body.page-weapons .weapon-drawer .comparison-pick, body.page-loadout .weapon-drawer .comparison-pick {
    min-width: 0;
  }
  body.page-weapons .weapon-drawer, body.page-loadout .weapon-drawer {
    width: min(1100px, 100% - 40px);
  }
  @media (max-width: 600px) {
    body.page-weapons .weapon-drawer, body.page-loadout .weapon-drawer {
      width: calc(100% - 20px);
    }
    body.page-weapons .weapon-drawer .comparison-heads, body.page-loadout .weapon-drawer .comparison-heads {
      gap: 6px;
    }
    body.page-weapons .weapon-drawer .comparison-pick, body.page-loadout .weapon-drawer .comparison-pick {
      padding: 10px 4px;
    }
    body.page-weapons .weapon-drawer .comparison-pick > select, body.page-loadout .weapon-drawer .comparison-pick > select {
      padding-left: 6px;
      padding-right: 28px;
      background-position: right 7px center;
      font-size: 16px;
    }
    body.page-weapons .weapon-drawer .weapon-summary h3, body.page-loadout .weapon-drawer .weapon-summary h3 {
      font-size: 13px;
    }
    body.page-weapons .weapon-drawer .weapon-summary img, body.page-loadout .weapon-drawer .weapon-summary img {
      height: 55px;
    }
    body.page-weapons .weapon-drawer .comparison-row, body.page-loadout .weapon-drawer .comparison-row {
      gap: 6px;
    }
    body.page-weapons .weapon-drawer .comparison-row strong, body.page-loadout .weapon-drawer .comparison-row strong {
      font-size: 16px;
    }
    body.page-weapons .weapon-drawer .comparison-pick > button, body.page-loadout .weapon-drawer .comparison-pick > button {
      margin: 3px 0;
      display: block;
      width: 100%;
    }
    body.page-weapons .comparison-toggle #comparison-preview img:nth-child(3), body.page-loadout .comparison-toggle #comparison-preview img:nth-child(3) {
      display: none;
    }
  }
  @media (min-width: 1000px) {
    body.page-weapons .weapon-filters, body.page-loadout .weapon-filters {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }
  }
  body.page-weapons .weapon-drawer .comparison-heads, body.page-weapons .weapon-drawer .comparison-row, body.page-loadout .weapon-drawer .comparison-heads, body.page-loadout .weapon-drawer .comparison-row {
    grid-template-columns: repeat(var(--compare-columns, 2), minmax(0, 1fr));
  }
  body.page-weapons .weapon-drawer .comparison-heads, body.page-loadout .weapon-drawer .comparison-heads {
    gap: 10px;
  }
  body.page-weapons .weapon-drawer .comparison-pick, body.page-loadout .weapon-drawer .comparison-pick {
    position: relative;
    padding: 12px 32px 8px 12px;
  }
  body.page-weapons .weapon-drawer .weapon-summary, body.page-loadout .weapon-drawer .weapon-summary {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 10px;
    border: 0;
    margin: 8px 0 0;
    padding: 0;
  }
  body.page-weapons .weapon-drawer .weapon-summary img, body.page-loadout .weapon-drawer .weapon-summary img {
    height: 48px;
    width: 65px;
    margin: 0;
    flex-shrink: 0;
  }
  body.page-weapons .weapon-drawer .weapon-summary p, body.page-loadout .weapon-drawer .weapon-summary p {
    font-size: 10px;
    line-height: 1.4;
    margin: 0;
  }
  body.page-weapons .weapon-drawer .comparison-pick > .comparison-remove, body.page-loadout .weapon-drawer .comparison-pick > .comparison-remove {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 28px;
    min-height: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    font-size: 23px;
  }
  body.page-weapons .weapon-drawer .comparison-row, body.page-loadout .weapon-drawer .comparison-row {
    padding: 8px 0;
  }
  body.page-weapons .weapon-drawer .comparison-row strong, body.page-loadout .weapon-drawer .comparison-row strong {
    font-size: 20px;
  }
  body.page-weapons .weapon-drawer .comparison-label, body.page-loadout .weapon-drawer .comparison-label {
    font-size: 11px;
  }
  body.page-weapons .weapon-drawer .comparison-pick > label, body.page-loadout .weapon-drawer .comparison-pick > label {
    font-size: 10px;
    margin-bottom: 6px;
  }
  body.page-weapons .weapon-drawer .comparison-pick > select, body.page-loadout .weapon-drawer .comparison-pick > select {
    font-size: 12px;
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  body.page-weapons .comparison-slot-actions, body.page-loadout .comparison-slot-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
  }
  body.page-weapons .comparison-slot-actions [hidden], body.page-loadout .comparison-slot-actions [hidden] {
    display: none;
  }
  body.page-weapons .weapon-drawer .weapon-section-heading h2, body.page-loadout .weapon-drawer .weapon-section-heading h2 {
    font-size: 24px;
  }
  body.page-weapons .weapon-card-rarity, body.page-loadout .weapon-card-rarity {
    display: grid;
    gap: 7px;
    font-size: 12px;
    color: #a9b2bc;
  }
  body.page-weapons .weapon-card-rarity select, body.page-loadout .weapon-card-rarity select {
    width: 100%;
    min-width: 0;
    background-color: #12161a;
    color: #f3eaff;
    border: 1px solid rgba(229, 242, 74, 0.2666666667);
    border-radius: 8px;
    font: inherit;
    padding: 10px 48px 10px 10px;
  }
  body.page-weapons .weapon-drawer #comparison-feedback, body.page-loadout .weapon-drawer #comparison-feedback {
    margin: 8px 0;
  }
  body.page-weapons .comparison-toggle #comparison-preview img:nth-child(3), body.page-loadout .comparison-toggle #comparison-preview img:nth-child(3) {
    display: block;
  }
  @media (max-width: 600px) {
    body.page-weapons .weapon-drawer .comparison-pick, body.page-loadout .weapon-drawer .comparison-pick {
      padding: 10px 6px;
    }
    body.page-weapons .weapon-drawer .comparison-pick > label, body.page-loadout .weapon-drawer .comparison-pick > label {
      padding-right: 22px;
    }
    body.page-weapons .weapon-drawer .comparison-pick > .comparison-remove, body.page-loadout .weapon-drawer .comparison-pick > .comparison-remove {
      right: 2px;
      top: 0;
      width: 26px;
      min-height: 28px;
      height: 28px;
    }
    body.page-weapons .weapon-drawer .comparison-pick > select, body.page-loadout .weapon-drawer .comparison-pick > select {
      font-size: 16px;
      padding-right: 28px;
    }
    body.page-weapons .weapon-drawer .weapon-summary, body.page-loadout .weapon-drawer .weapon-summary {
      flex-direction: column;
      gap: 4px;
      text-align: center;
    }
    body.page-weapons .weapon-drawer .weapon-summary img, body.page-loadout .weapon-drawer .weapon-summary img {
      height: 35px;
      width: 50px;
    }
    body.page-weapons .weapon-drawer .weapon-summary p, body.page-loadout .weapon-drawer .weapon-summary p {
      font-size: 9px;
    }
    body.page-weapons .weapon-drawer .comparison-row strong, body.page-loadout .weapon-drawer .comparison-row strong {
      font-size: 16px;
    }
    body.page-weapons .weapon-drawer .comparison-row, body.page-loadout .weapon-drawer .comparison-row {
      padding: 6px 0;
    }
    body.page-weapons .weapon-card-rarity select, body.page-loadout .weapon-card-rarity select {
      font-size: 16px;
    }
    body.page-weapons .comparison-toggle #comparison-preview img, body.page-loadout .comparison-toggle #comparison-preview img {
      width: 26px;
    }
  }
  body.page-weapons .weapon-grid, body.page-loadout .weapon-grid {
    grid-auto-rows: auto;
  }
  body.page-weapons .weapon-grid > .weapon-card, body.page-loadout .weapon-grid > .weapon-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 6;
    row-gap: 14px;
  }
  body.page-weapons .weapon-grid > .weapon-card > img, body.page-loadout .weapon-grid > .weapon-card > img {
    align-self: center;
  }
  body.page-weapons .weapon-grid > .weapon-card > h3, body.page-weapons .weapon-grid > .weapon-card > .weapon-note, body.page-weapons .weapon-grid > .weapon-card > .weapon-card-stats, body.page-loadout .weapon-grid > .weapon-card > h3, body.page-loadout .weapon-grid > .weapon-card > .weapon-note, body.page-loadout .weapon-grid > .weapon-card > .weapon-card-stats {
    margin: 0;
  }
  body.page-weapons .weapon-grid > .weapon-card > .weapon-card-rarity, body.page-loadout .weapon-grid > .weapon-card > .weapon-card-rarity {
    align-self: end;
  }
  body.page-weapons .weapon-grid > .weapon-card > .weapon-card-actions, body.page-loadout .weapon-grid > .weapon-card > .weapon-card-actions {
    align-self: end;
  }
  body.page-weapons .weapon-grid > .weapon-card > img[hidden], body.page-loadout .weapon-grid > .weapon-card > img[hidden] {
    display: block;
    visibility: hidden;
  }
  @supports not (grid-template-rows: subgrid) {
    body.page-weapons .weapon-grid > .weapon-card, body.page-loadout .weapon-grid > .weapon-card {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    body.page-weapons .weapon-grid > .weapon-card > h3, body.page-loadout .weapon-grid > .weapon-card > h3 {
      min-height: 4.2em;
    }
    body.page-weapons .weapon-grid > .weapon-card > .weapon-card-actions, body.page-loadout .weapon-grid > .weapon-card > .weapon-card-actions {
      margin-top: auto;
      width: 100%;
    }
  }
  body.page-weapons .weapon-drawer .weapon-summary, body.page-loadout .weapon-drawer .weapon-summary {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 4px 12px;
    text-align: left;
    margin: 10px 0 14px;
    min-height: 72px;
  }
  body.page-weapons .weapon-drawer .weapon-summary img, body.page-loadout .weapon-drawer .weapon-summary img {
    grid-row: 1/3;
    width: 70px;
    height: 64px;
    align-self: center;
  }
  body.page-weapons .weapon-drawer .weapon-summary h3, body.page-loadout .weapon-drawer .weapon-summary h3 {
    font-size: 16px;
    line-height: 1.35;
    margin: 0;
    align-self: end;
  }
  body.page-weapons .weapon-drawer .weapon-summary p, body.page-loadout .weapon-drawer .weapon-summary p {
    font-size: 11px;
    align-self: start;
  }
  body.page-weapons .weapon-drawer .comparison-pick > select, body.page-loadout .weapon-drawer .comparison-pick > select {
    margin-top: auto;
  }
  body.page-weapons .weapon-drawer .comparison-pick, body.page-loadout .weapon-drawer .comparison-pick {
    display: flex;
    flex-direction: column;
  }
  body.page-weapons .weapon-drawer .comparison-pick > label, body.page-loadout .weapon-drawer .comparison-pick > label {
    align-self: center;
  }
  @media (max-width: 600px) {
    body.page-weapons .weapon-drawer .weapon-summary, body.page-loadout .weapon-drawer .weapon-summary {
      display: flex;
      flex-direction: column;
      gap: 5px;
      text-align: center;
      min-height: 120px;
      margin: 8px 0 12px;
    }
    body.page-weapons .weapon-drawer .weapon-summary img, body.page-loadout .weapon-drawer .weapon-summary img {
      height: 44px;
      width: 60px;
    }
    body.page-weapons .weapon-drawer .weapon-summary h3, body.page-loadout .weapon-drawer .weapon-summary h3 {
      font-size: 13px;
      align-self: center;
    }
    body.page-weapons .weapon-drawer .weapon-summary p, body.page-loadout .weapon-drawer .weapon-summary p {
      font-size: 9px;
      align-self: center;
    }
  }
  body.page-weapons .weapon-drawer #weapon-comparison .comparison-row, body.page-loadout .weapon-drawer #weapon-comparison .comparison-row {
    display: grid;
    grid-template-columns: repeat(var(--compare-columns, 2), minmax(0, 1fr));
    column-gap: 10px;
    align-items: center;
    justify-items: stretch;
  }
  body.page-weapons .weapon-drawer #weapon-comparison .comparison-row > .comparison-label, body.page-loadout .weapon-drawer #weapon-comparison .comparison-row > .comparison-label {
    grid-column: 1/-1;
    text-align: center;
  }
  body.page-weapons .weapon-drawer #weapon-comparison .comparison-row > strong, body.page-loadout .weapon-drawer #weapon-comparison .comparison-row > strong {
    display: block;
    width: 100%;
    min-width: 0;
    text-align: center;
    justify-self: stretch;
    margin: 0;
    padding: 0;
  }
  body.page-weapons .weapon-drawer #weapon-comparison[data-columns="2"] .comparison-row, body.page-loadout .weapon-drawer #weapon-comparison[data-columns="2"] .comparison-row {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 1fr) minmax(0, 1fr);
    min-height: 48px;
    padding: 10px 0;
  }
  body.page-weapons .weapon-drawer #weapon-comparison[data-columns="2"] .comparison-row > .comparison-label, body.page-loadout .weapon-drawer #weapon-comparison[data-columns="2"] .comparison-row > .comparison-label {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
  body.page-weapons .weapon-drawer #weapon-comparison[data-columns="2"] .comparison-row > strong:nth-child(2), body.page-loadout .weapon-drawer #weapon-comparison[data-columns="2"] .comparison-row > strong:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
  }
  body.page-weapons .weapon-drawer #weapon-comparison[data-columns="2"] .comparison-row > strong:nth-child(3), body.page-loadout .weapon-drawer #weapon-comparison[data-columns="2"] .comparison-row > strong:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }
  body.page-weapons .weapon-drawer #weapon-comparison[data-columns="3"] .comparison-row, body.page-loadout .weapon-drawer #weapon-comparison[data-columns="3"] .comparison-row {
    grid-template-columns: minmax(100px, 1fr) repeat(3, minmax(0, 1fr));
    min-height: 48px;
    padding: 10px 0;
  }
  body.page-weapons .weapon-drawer #weapon-comparison[data-columns="3"] .comparison-row > .comparison-label, body.page-loadout .weapon-drawer #weapon-comparison[data-columns="3"] .comparison-row > .comparison-label {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }
  @media (max-width: 600px) {
    body.page-weapons .weapon-drawer #weapon-comparison[data-columns="2"] .comparison-row, body.page-loadout .weapon-drawer #weapon-comparison[data-columns="2"] .comparison-row {
      grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
    }
    body.page-weapons .weapon-drawer #weapon-comparison[data-columns="3"] .comparison-row, body.page-loadout .weapon-drawer #weapon-comparison[data-columns="3"] .comparison-row {
      grid-template-columns: 90px repeat(3, minmax(0, 1fr));
    }
    body.page-weapons .weapon-drawer #weapon-comparison .comparison-label, body.page-loadout .weapon-drawer #weapon-comparison .comparison-label {
      font-size: 10px;
    }
    body.page-weapons .weapon-drawer #weapon-comparison .comparison-row > strong, body.page-loadout .weapon-drawer #weapon-comparison .comparison-row > strong {
      font-size: 14px;
    }
  }
}

@layer tools {
  body.page-pirate .pirate-game {
    max-width: 780px;
    margin: 24px auto;
    padding: 16px;
    color: #f7f3ff;
  }
  body.page-pirate .pirate-game h1 {
    font-family: "Luckiest Guy", sans-serif;
    font-size: clamp(2rem, 5vw, 2.7rem);
    margin-bottom: 24px;
  }
  body.page-pirate .pirate-stage {
    text-align: center;
    padding: 28px 16px;
    background: #191520;
    border: 1px solid #3c3347;
    border-radius: 16px;
  }
  body.page-pirate .pirate-chest {
    font-size: 36px;
    color: #e7b756;
    margin-bottom: 12px;
  }
  body.page-pirate .pirate-count {
    font-size: clamp(3rem, 9vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
  }
  body.page-pirate .pirate-status {
    min-height: 1.5em;
    margin: 16px 0;
    color: #c6bacf;
    font-size: 0.9rem;
  }
  body.page-pirate .pirate-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }
  body.page-pirate .pirate-actions button {
    padding: 9px 16px;
    border-radius: 9px;
    font-weight: 600;
  }
  body.page-pirate #auto {
    padding: 14px 28px;
    font-size: 1.1rem;
    min-width: 200px;
  }
  body.page-pirate #reset {
    border-color: transparent;
    color: #b9adc5;
    font-size: 0.85rem;
    font-weight: 400;
  }
  body.page-pirate .pirate-actions {
    align-items: center;
  }
  body.page-pirate #reset.search-finished {
    background: #ffc107;
    border-color: #ffc107;
    color: #17131e;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
  }
  body.page-pirate .pirate-stage.found {
    border-color: #e7b756;
  }
  body.page-pirate .pirate-prizes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 10px;
    margin: 12px 0 24px;
  }
  body.page-pirate .pirate-prize {
    padding: 14px 16px;
    border: 1px solid #45394f;
    border-radius: 12px;
    background: #191520;
    display: flex;
    gap: 12px;
    align-items: center;
  }
  body.page-pirate .pirate-prize[hidden] {
    display: none;
  }
  body.page-pirate .pirate-prize-icon {
    font-size: 20px;
    color: #e7b756;
    width: 28px;
    text-align: center;
  }
  body.page-pirate .pirate-game .pirate-prize h3 {
    font-family: "Google Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 3px;
  }
  body.page-pirate .pirate-prize small {
    color: #b9adc5;
    font-size: 0.75rem;
  }
  body.page-pirate .pirate-prize-result {
    margin-left: auto;
    color: #ffda85;
    font-weight: 700;
    white-space: nowrap;
  }
  body.page-pirate .pirate-help {
    font-size: 0.8rem;
    color: #b9adc5;
    margin-top: 20px;
  }
  body.page-pirate .pirate-help p {
    margin: 12px 0;
  }
  body.page-pirate .pirate-info {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 12px 0;
  }
  body.page-pirate .pirate-game a {
    color: #eec970;
  }
  body.page-pirate .pirate-odds {
    padding-left: 20px;
    line-height: 1.8;
  }
  body.page-pirate .pirate-batch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 0.85rem;
    color: #b9adc5;
  }
  body.page-pirate .pirate-batch[hidden] {
    display: none;
  }
  body.page-pirate .pirate-batch input {
    width: 100px;
    background: #231d2c;
    border: 1px solid #51445d;
    border-radius: 7px;
    color: #f7f3ff;
    padding: 6px 8px;
  }
}

@layer components {
  * {
    box-sizing: border-box;
  }
  html {
    scroll-padding-top: 90px;
  }
  body {
    background: var(--page);
    color: var(--ink);
    font-family: "Google Sans", sans-serif;
    font-size: 16px;
    line-height: 1.55;
  }
  body::before, body::after {
    display: none;
  }
  h1, h2, h3 {
    letter-spacing: -0.02em;
  }
  .tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(229, 242, 74, 0.0705882353);
    border: 1px solid rgba(229, 242, 74, 0.1411764706);
    color: var(--accent);
    margin-bottom: 24px;
  }
  dialog {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.1490196078);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.6);
  }
  dialog::backdrop {
    background: rgba(7, 10, 14, 0.8509803922);
  }
  dialog h2 {
    line-height: 1.2;
  }
  @media (max-width: 600px) {
    .home-heading {
      margin-bottom: 20px;
    }
    .home-heading p {
      font-size: 13px;
    }
    .tool-icon {
      margin-bottom: 18px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    * {
      scroll-behavior: auto;
      animation: none;
      transition: none;
    }
  }
  body {
    --panel: var(--surface);
    --line: #ffffff16;
    --text-muted: var(--muted);
  }
  .tool-icon {
    background: transparent;
    border: 0;
    color: var(--accent);
    width: 36px;
    height: 36px;
  }
  body main h2, body main h3, body main h4, body dialog h2, body dialog h3 {
    font-family: "Google Sans", sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
}
@layer components {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 19, 21, 0.9607843137);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.0705882353);
    box-shadow: none;
  }
  .site-header::before, .site-header::after {
    display: none;
  }
  .header-inner {
    flex-wrap: nowrap;
    min-height: 80px;
    padding: 12px 32px;
    max-width: none;
  }
  .site-header .brand {
    filter: none;
  }
  .logo-word {
    font-family: "Luckiest Guy", Impact, sans-serif;
    font-weight: 900;
    font-size: 34px;
    letter-spacing: -1px;
    font-style: normal;
    transform: none;
    text-shadow: none;
  }
  .logo-domain {
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: var(--accent);
    text-shadow: none;
  }
  .site-header nav a {
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
    color: #b9b9b0;
    padding: 10px 12px;
    box-shadow: none;
  }
  .site-header nav a:hover {
    background: rgba(255, 255, 255, 0.0352941176);
    color: #fff;
  }
  .site-header nav a[aria-current=page] {
    background: var(--accent);
    color: #101317;
  }
  @media (max-width: 999px) {
    .header-inner > nav {
      display: none;
    }
    .mobile-menu {
      display: block;
      margin-left: auto;
    }
    .mobile-menu summary {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 44px;
      border: 1px solid rgba(255, 255, 255, 0.1490196078);
      border-radius: 8px;
      padding: 8px 12px;
      list-style: none;
      cursor: pointer;
    }
    .mobile-menu summary::-webkit-details-marker {
      display: none;
    }
    .menu-close {
      display: none;
    }
    .mobile-menu[open] .menu-icon {
      display: none;
    }
    .mobile-menu[open] .menu-close {
      display: block;
    }
    .mobile-menu-panel {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: #101317;
      padding: 12px 20px 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1254901961);
      max-height: calc(100dvh - 76px);
      overflow: auto;
    }
    .site-header .mobile-menu nav {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .site-header .mobile-menu nav a {
      min-height: 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 15px;
    }
    .mobile-menu nav a span {
      color: inherit;
    }
  }
  @media (max-width: 600px) {
    .header-inner {
      padding: 10px 20px;
      min-height: 66px;
    }
    .logo-word {
      font-size: 30px;
    }
    .site-header .mobile-menu nav {
      grid-template-columns: 1fr 1fr;
    }
    .mobile-menu-panel {
      max-height: calc(100dvh - 66px);
    }
  }
  .sprite-card, .compact .sprite-card, .sprite-card header, .sprite-card h3, .sprite-portrait, .variants-row, .variant-button, .tracker-toolbar, .filters, .comparison-head, .comparison-heads > div, .comparison-slot, .weapon-comparison, .comparison-drawer, .loadout-slot, .loadout-library, .loadout-picker, .cosmetic-details, .cosmetic-card-open {
    background-color: var(--surface);
    background-image: none;
    border-color: rgba(255, 255, 255, 0.0862745098);
    box-shadow: none;
  }
  .sprite-card h3, .sprite-card header {
    color: var(--ink);
  }
  body .logo-word, body .tool-hero h1 {
    font-family: "Luckiest Guy", Impact, sans-serif;
    font-weight: 400;
    letter-spacing: 0;
  }
  body .logo-word {
    font-size: 30px;
  }
  @media (max-width: 600px) {
    body .logo-word {
      font-size: 26px;
    }
  }
  body .tracker-toolbar, body .sprite-card header, body .sprite-card h3, body .sprite-card .sprite-info, body .sprite-card .sprite-heading, body .sprite-card .variants-row {
    background: transparent;
    box-shadow: none;
  }
  body .site-header .brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    line-height: 1;
  }
  body .site-header .logo-word {
    display: block;
    line-height: 1;
    letter-spacing: 0.025em;
    padding-top: 0.16em;
    white-space: nowrap;
  }
  body .site-header .logo-domain {
    display: inline-block;
    margin-left: 0.06em;
    letter-spacing: 0.015em;
  }
}
@layer components {
  body .site-header nav a {
    font-size: 15px;
    padding-inline: 15px;
  }
}
@layer components {
  body .site-header .mobile-menu summary {
    border: 0;
    box-shadow: none;
    background: transparent;
  }
}
@layer components {
  .header-inner > nav {
    flex-shrink: 0;
    align-items: center;
  }
  .header-inner > nav > a {
    flex-shrink: 0;
    white-space: nowrap;
  }
}
@layer components {
  .site-header .desktop-navigation {
    width: auto;
    margin: 0;
    gap: 32px;
    align-items: start;
    min-width: 0;
  }
  .desktop-nav-section {
    min-width: 0;
  }
  .desktop-nav-section h2 {
    margin: 0 0 7px;
    padding-left: 0;
    color: #858d94;
    font: 10px/1.5 ui-monospace, monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .desktop-nav-links {
    margin-inline: -10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 2px;
  }
  body .site-header .desktop-nav-links a {
    font-size: 15px;
    font-weight: 500;
    padding: 7px 10px;
    border-radius: 8px;
    line-height: 1.4;
    white-space: nowrap;
  }
  @media (min-width: 1000px) {
    .site-header .desktop-navigation {
      display: grid;
      grid-template-columns: 1.07fr 0.91fr 1.15fr;
      padding: 12px 32px;
      background: #17191b;
      border-top: 1px solid rgba(255, 255, 255, 0.031372549);
    }
    .site-header .mobile-menu {
      display: none;
    }
    .header-inner {
      gap: 38px;
      padding-block: 12px;
      min-height: 76px;
    }
  }
  @media (max-width: 999px) {
    .site-header .desktop-navigation {
      display: none;
    }
    .site-header .mobile-menu nav {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 20px;
    }
    .mobile-nav-section {
      min-width: 0;
    }
    .mobile-nav-section h2 {
      margin: 0 0 10px;
      color: #858d94;
      font: 11px/1.5 ui-monospace, monospace;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .mobile-nav-links {
      display: grid;
      gap: 4px;
    }
    body .site-header .mobile-menu .mobile-nav-links a {
      border-radius: 9px;
      padding: 10px 12px;
      font-weight: 500;
      line-height: 1.4;
    }
    .mobile-menu-panel {
      padding-top: 16px;
      padding-bottom: 28px;
      background: #121315;
    }
  }
  @media (max-width: 600px) {
    .site-header .mobile-menu nav {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    .mobile-nav-links {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 4px 12px;
    }
    body .site-header .mobile-menu .mobile-nav-links a {
      padding-inline: 10px;
      font-size: 14px;
    }
    .mobile-nav-section h2 {
      padding-left: 10px;
    }
  }
}
@layer components {
  .tool-hero {
    position: relative;
    isolation: isolate;
    display: block;
    min-height: 0;
    border: 0;
    background: #121315;
    overflow: hidden;
  }
  .tool-hero::before, .tool-hero::after {
    content: none;
  }
  .tool-hero-art {
    display: none;
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
  }
  .tool-hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(18, 19, 21, 0.75);
  }
  .tool-hero-image {
    position: absolute;
    inset: 0;
    z-index: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: saturate(0.5);
  }
  .tool-hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 76px 32px 68px;
  }
  .tool-hero .eyebrow {
    display: block;
    font: 11px/1.5 ui-monospace, monospace;
    letter-spacing: 0.12em;
    color: #b1b1a7;
    margin: 0 0 2px;
  }
  .tool-hero h1 {
    font: 400 clamp(38px, 4.6vw, 64px)/1.06 var(--font-display);
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    margin: 0;
    max-width: none;
    text-shadow: none;
  }
  .tool-hero-description {
    max-width: none;
    font: 400 20px/1.65 var(--font-body);
    color: #b1b1a7;
    margin: 0 0 4px;
    text-shadow: none;
  }
  @media (max-width: 600px) {
    .tool-hero-content {
      padding: 52px 20px 42px;
    }
    .tool-hero h1 {
      font-size: clamp(36px, 10vw, 44px);
    }
    .tool-hero-description {
      font-size: 16px;
    }
  }
}
@layer components {
  .tool-open-button, button.primary, .primary-button {
    background: var(--accent);
    color: #11150d;
    border: 1px solid transparent;
    box-shadow: none;
    border-radius: 999px;
    font-weight: 750;
    min-height: 46px;
  }
  .tool-open-button:hover {
    background: #f0fc69;
    filter: none;
  }
  .tool-open-button span {
    color: #11150d;
  }
  input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }
  button {
    touch-action: manipulation;
  }
  @media (max-width: 600px) {
    .tool-card-bottom .tool-open-button {
      width: 100%;
    }
  }
  body .btn-warning, body #auto {
    background: var(--accent);
    color: #101317;
    border-color: transparent;
    box-shadow: none;
    font-weight: 750;
  }
  body button:disabled {
    cursor: not-allowed;
  }
  .tool-card .tool-open-button {
    background: #2b2e32;
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.0941176471);
  }
  .tool-card .tool-open-button span {
    color: var(--accent);
  }
  .tool-card:hover .tool-open-button {
    background: var(--accent);
    color: #11150d;
  }
  .tool-card:hover .tool-open-button span {
    color: #11150d;
  }
}
@layer components {
  :where(button, .file-button) {
    font: inherit;
    color: var(--ink);
    background: #2b2e32;
    border: 1px solid rgba(255, 255, 255, 0.1254901961);
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
  }
  :where(button):disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .pirate-primary {
    background: var(--accent);
    color: #101317;
    font-weight: 750;
    border-color: transparent;
  }
  .page-pirate .small {
    font-size: 13px;
  }
  .page-pirate .text-secondary {
    color: var(--muted);
  }
  .page-pirate .h6 {
    font-size: 16px;
  }
  .page-pirate .mt-4 {
    margin-top: 24px;
  }
  .page-pirate .mb-2 {
    margin-bottom: 8px;
  }
}
@layer surfaces {
  body button.quiet-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--muted);
  }
  body button.quiet-action:hover {
    background: transparent;
    color: var(--ink);
  }
  .quiet-action svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }
}
@layer components {
  ::selection {
    background: var(--accent);
    color: #101317;
  }
  input, select {
    background-color: #1b1d20;
    border-color: rgba(255, 255, 255, 0.1411764706);
    border-radius: 9px;
    color: var(--ink);
    min-height: 46px;
  }
  input[type=checkbox] {
    min-height: 0;
    accent-color: var(--accent);
  }
  @media (max-width: 600px) {
    input, select {
      font-size: 16px;
    }
  }
}
@layer components {
  body select:not([multiple]):not([size]), body select[size="1"] {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23c6cccf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
  }
  @media (forced-colors: active) {
    body select:not([multiple]):not([size]), body select[size="1"] {
      appearance: auto;
      -webkit-appearance: auto;
      background-image: none;
    }
  }
}
@layer components {
  .cosmetics-main .cosmetic-card-open {
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .shop-card {
    border-radius: 16px;
    padding: 0;
  }
  .home-heading h2, .shop-intro h2, .shop-section > h2 {
    font-family: "Google Sans", sans-serif;
    font-size: 23px;
    font-weight: 750;
    letter-spacing: -0.03em;
  }
  .tool-cards {
    gap: 18px;
  }
  .tool-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.0705882353);
    border-radius: 16px;
    box-shadow: none;
    transition: border-color 0.15s;
  }
  .tool-card:hover {
    background: #1b2026;
    border-color: rgba(229, 242, 74, 0.4);
    transform: none;
  }
  .tool-card-body {
    padding: 28px;
  }
  .tool-card h3 {
    font-family: "Google Sans", sans-serif;
    font-size: 24px;
    font-weight: 750;
    line-height: 1.25;
  }
  .tool-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
  }
  .tool-card-bottom {
    gap: 16px;
    margin-top: auto;
    padding-top: 8px;
  }
  .tool-card-bottom span {
    color: #8894a1;
  }
  .shop-price, #shop-detail-price {
    color: var(--accent);
  }
  .shop-card:hover, .cosmetic-card:hover {
    border-color: rgba(229, 242, 74, 0.3333333333);
    transform: none;
  }
  .shop-card-body {
    border-color: rgba(255, 255, 255, 0.0509803922);
  }
  @media (max-width: 600px) {
    .tool-card-body {
      padding: 22px;
    }
    .tool-card h3 {
      font-size: 22px;
    }
    .tool-card-bottom {
      flex-direction: column;
      align-items: stretch;
    }
    .tool-card-bottom > span {
      font-size: 12px;
    }
    .tool-card p {
      margin-bottom: 20px;
    }
    .cosmetics-type-tabs, .shop-type-tabs {
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.1882352941) transparent;
    }
    .shop-card h3 {
      font-size: 14px;
    }
    .shop-card-body {
      height: 140px;
    }
    .cosmetic-details h2 {
      font-size: 28px;
    }
  }
  .weapon-card {
    border-top-color: var(--rarity, rgba(255, 255, 255, 0.1490196078));
  }
  .loadout-slot {
    border-top-color: var(--rarity, rgba(255, 255, 255, 0.1490196078));
  }
  .cosmetic-card-heart[aria-pressed=true] {
    color: var(--accent);
  }
  .tool-card {
    border-radius: 12px;
  }
  .tool-card-body {
    padding: 26px;
  }
  .comparison-drawer {
    background: #13181e;
    border-color: rgba(255, 255, 255, 0.1450980392);
  }
  .comparison-heads > div {
    background: #1b222a;
  }
  .comparison-heads h3, .comparison-heads p {
    color: #edf1f5;
  }
  body h2, body h3, body h4, .home-heading h2, .shop-section > h2 {
    font-family: "Google Sans", sans-serif;
    font-weight: 750;
  }
  #loadout-loading:empty {
    display: none;
  }
  .cosmetics-pagination[hidden] {
    display: none;
  }
}
@layer components {
  .site-footer {
    display: block;
    max-width: none;
    margin: 64px 32px 0;
    padding: 32px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.0509803922);
    color: var(--muted);
  }
  .footer-main {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
    gap: 48px;
    align-items: start;
  }
  .footer-brand {
    font: 400 24px/1.2 var(--font-display);
    letter-spacing: 0;
    color: var(--ink);
    text-decoration: none;
  }
  .footer-brand span {
    color: var(--accent);
  }
  .site-footer .footer-identity p {
    margin: 12px 0 0;
    font-size: 14px;
  }
  .site-footer .footer-support-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: auto;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .site-footer .footer-support-eyebrow {
    font: 10px/1.4 ui-monospace, monospace;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0 0 8px;
  }
  .footer-support-feature h2 {
    font: 500 16px/1.5 var(--font-body);
    color: var(--ink);
    margin: 0 0 6px;
  }
  .footer-support-feature h2 span {
    color: var(--accent);
    font-weight: 700;
  }
  .footer-support-feature p {
    font-size: 12px;
    line-height: 1.6;
  }
  .footer-shop-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 44px;
    color: var(--ink);
    font-size: 14px;
    text-decoration: none;
  }
  .footer-shop-link:hover {
    color: var(--accent);
  }
  .site-footer .footer-note {
    margin: 28px 0 0;
    text-align: left;
    font-size: 11px;
    color: #7f888d;
  }
  @media (max-width: 900px) {
    .footer-main {
      grid-template-columns: 1fr;
      gap: 28px;
    }
  }
  @media (max-width: 600px) {
    .site-footer {
      margin: 44px 20px 0;
      padding: 28px 0 20px;
    }
    .site-footer .footer-support-feature {
      align-items: flex-start;
      flex-direction: column;
      gap: 12px;
    }
    .site-footer .footer-note {
      margin-top: 24px;
    }
  }
}
@layer components {
  .footer-main {
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: center;
  }
  .site-footer .footer-support-feature {
    justify-content: flex-end;
    align-self: center;
  }
  .footer-support-feature .creator-support {
    width: 100%;
  }
  @media (max-width: 900px) {
    .footer-main {
      grid-template-columns: minmax(0, 1fr);
    }
    .site-footer .footer-support-feature {
      width: min(100%, 400px);
      justify-self: end;
    }
  }
  @media (max-width: 600px) {
    .site-footer .footer-support-feature {
      width: 100%;
    }
  }
}
@layer components {
  .pirate-stage, .pirate-panel, .sprite-card, .compact .sprite-card, .stats > div, .filters, .weapon-card, .loadout-slot, .loadout-library {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.0941176471);
    box-shadow: none;
  }
  .sprite-portrait {
    background: rgba(255, 255, 255, 0.0117647059);
    border-color: rgba(255, 255, 255, 0.062745098);
  }
  .variant-button {
    background: #20262d;
    border-color: rgba(255, 255, 255, 0.1019607843);
  }
  .variant-button[data-state="1"] {
    background: rgba(229, 242, 74, 0.0705882353);
    border-color: rgba(229, 242, 74, 0.5019607843);
  }
  .sprite-portrait {
    background: #1c1f22;
  }
  .variant-button {
    background: #20262d;
  }
  .variant-button[data-state="1"] {
    background: rgba(229, 242, 74, 0.0705882353);
    border-color: rgba(229, 242, 74, 0.4);
  }
  .variant-button[data-state="1"] .state-label {
    color: var(--accent);
  }
  .variant-button[data-state="2"] {
    background: rgba(240, 185, 78, 0.0705882353);
    border-color: rgba(240, 185, 78, 0.5333333333);
  }
  .variant-button[data-state="2"] .state-label {
    color: #f0b94e;
  }
  .sprite-info-button, .info-button, .cosmetic-card-heart {
    background: rgba(16, 21, 27, 0.9019607843);
    color: #c8c8be;
    border-color: rgba(255, 255, 255, 0.1450980392);
  }
  .save-note, #notice, .eyebrow {
    color: #c8d1d9;
  }
  body .compact .variant-button, body .compact .variant-button[data-state="1"], body .compact .variant-button[data-state="2"] {
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  body .compact .variant-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
  }
  body .compact .variant-button .variant-dot {
    box-shadow: none;
  }
}
@layer components {
  .page-sprites .tracker {
    width: 100%;
    max-width: none;
    padding-inline: 32px;
  }
  .page-sprites .filters {
    padding: 16px;
  }
  .page-sprites .stats strong {
    white-space: nowrap;
    font-size: 26px;
  }
  .page-sprites .stats > div {
    min-width: 0;
  }
  .page-sprites .sprite-info-button {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0;
    border-radius: 50%;
    font: 700 13px Georgia, serif;
  }
  @media (max-width: 600px) {
    .page-sprites .tracker {
      padding-inline: 20px;
    }
    .page-sprites .stats > div {
      padding: 14px;
    }
    .page-sprites .stats strong {
      font-size: 23px;
    }
    .page-sprites .stats span {
      font-size: 10px;
    }
  }
}
@layer components {
  body.page-sprites .filters {
    display: grid;
    grid-template-columns: minmax(180px, 1.6fr) repeat(3, minmax(110px, 1fr)) minmax(200px, 1.2fr) auto auto;
    align-items: end;
    gap: 18px;
    padding: 8px 0 24px;
    margin-top: 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  body.page-sprites .filters label {
    min-width: 0;
    gap: 10px;
  }
  body.page-sprites .filters input, body.page-sprites .filters select {
    min-height: 48px;
  }
  body.page-sprites .sprite-view-switch {
    display: flex;
    gap: 4px;
    align-items: center;
    border: 0;
    background: transparent;
  }
  body.page-sprites .sprite-view-switch button {
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
  }
  body.page-sprites #reset-filters {
    height: 48px;
  }
  @media (max-width: 1100px) {
    body.page-sprites .filters {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }
    body.page-sprites .filters label:first-child {
      grid-column: 1/-1;
    }
    body.page-sprites #reset-filters {
      justify-self: end;
      grid-column: 2/-1;
    }
  }
  @media (max-width: 600px) {
    body.page-sprites .filters {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px 12px;
      margin-top: 12px;
    }
    body.page-sprites .filters label:nth-child(2) {
      grid-column: 1/-1;
    }
    body.page-sprites #reset-filters {
      grid-column: 2;
      padding-inline: 0;
    }
  }
}
@layer components {
  body.page-sprites .variant-button {
    border-radius: 12px;
  }
}
@layer typography {
  body.page-sprites .variant-button .variant-label {
    font-size: 14px;
    line-height: 1.35;
  }
}
@layer components {
  body.page-sprites .tracker {
    margin-top: 0;
    padding-top: 0;
  }
  body.page-sprites .tracker-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  body.page-sprites .tracker-toolbar label {
    width: min(100%, 360px);
  }
  body.page-sprites .save-note {
    padding: 0;
  }
  body.page-sprites .stats {
    margin: 24px 0;
    gap: 18px;
  }
  body.page-sprites .stats > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 16px;
    padding: 20px 24px;
  }
  body.page-sprites .stats strong {
    margin: 0;
    line-height: 1.2;
  }
  body.page-sprites .stats progress {
    grid-column: 1/-1;
    margin: 0;
    height: 5px;
  }
  @media (max-width: 600px) {
    body.page-sprites .stats {
      gap: 10px;
    }
    body.page-sprites .stats > div {
      padding: 16px 14px;
      gap: 12px 8px;
    }
  }
}
@layer components {
  body.page-sprites .sprite-progress {
    position: relative;
    grid-column: 1/-1;
    height: 22px;
    isolation: isolate;
  }
  body.page-sprites .sprite-progress progress {
    height: 22px;
    border-radius: 6px;
  }
  body.page-sprites .sprite-progress .sprite-progress-percent {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    margin: 0;
    color: #fff;
    mix-blend-mode: difference;
    font: 700 11px/1 var(--font-body);
    letter-spacing: 0;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
  }
}
@layer components {
  body.page-sprites .compact .sprite-card {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: start;
    align-items: center;
    gap: 14px 12px;
    padding: 18px;
    border-radius: 16px;
    background: var(--surface);
  }
  body.page-sprites .compact .sprite-portrait {
    grid-column: 1;
    grid-row: 1;
    width: 52px;
    height: 52px;
    border: 0;
    background: transparent;
    overflow: visible;
  }
  body.page-sprites .compact .sprite-portrait img {
    width: 52px;
    height: 52px;
    padding: 0;
    filter: none;
  }
  body.page-sprites .compact .sprite-info {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    min-width: 0;
  }
  body.page-sprites .compact .sprite-heading {
    justify-content: flex-start;
    gap: 8px;
  }
  body.page-sprites .compact .sprite-info h3 {
    font-size: 16px;
    line-height: 1.3;
  }
  body.page-sprites .compact .sprite-info-button {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    min-height: 22px;
    border-radius: 50%;
  }
  body.page-sprites .compact .variants-row {
    grid-column: 1/-1;
    grid-row: 2;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body.page-sprites .compact .variant-button {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    min-height: 44px;
    gap: 9px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: #24272b;
    box-shadow: none;
    color: #abb2b9;
    transition: background-color 0.15s;
  }
  body.page-sprites .compact .variant-button .variant-label {
    text-align: left;
    color: inherit;
  }
  body.page-sprites .compact .variant-button .variant-dot {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border: 1px solid #75808b;
    border-radius: 4px;
    font-size: 13px;
    color: inherit;
    background: transparent;
    box-shadow: none;
  }
  body.page-sprites .compact .variant-button[data-state="1"] {
    color: var(--accent);
    background: rgba(215, 246, 144, 0.0705882353);
  }
  body.page-sprites .compact .variant-button[data-state="2"] {
    color: #e7b756;
    background: rgba(231, 183, 86, 0.0784313725);
  }
  body.page-sprites .compact .variant-button:not([data-state="0"]) .variant-dot {
    border: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
  }
  @media (hover: hover) {
    body.page-sprites .compact .variant-button:hover {
      background: rgba(255, 255, 255, 0.0784313725);
    }
  }
  @media (max-width: 600px) {
    body.page-sprites .compact .sprite-card {
      padding: 16px;
    }
  }
}
@layer components {
  body.page-sprites .compact .variant-button .variant-dot {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    font-size: 17px;
  }
  body.page-sprites .compact .variant-button[data-state="2"] .variant-dot {
    border-radius: 0;
    background: transparent;
    color: #efb936;
  }
  body.page-sprites .compact .variant-dot svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
  }
}
@layer components {
  body.page-sprites .sprite-card {
    position: relative;
  }
  body.page-sprites .sprite-collection-number {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #aab2ba;
    font: 500 12px/1.4 ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
  }
  body.page-sprites .sprite-heading {
    justify-content: flex-start;
    gap: 8px;
  }
  body.page-sprites .sprite-heading h3 {
    flex: 0 1 auto;
  }
  body.page-sprites .sprite-info-button, body.page-sprites .compact .sprite-info-button {
    position: static;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    min-height: 22px;
    min-width: 22px;
    padding: 0;
    border-radius: 50%;
  }
  body.page-sprites .compact .sprite-info {
    padding-right: 36px;
  }
  body.page-sprites .compact .sprite-collection-number {
    top: 18px;
    right: 18px;
  }
  @media (max-width: 1100px) {
    body.page-sprites #reset-filters {
      grid-column: auto;
    }
  }
  @media (max-width: 600px) {
    body.page-sprites .filters label:has(#sprite-sort) {
      grid-column: 1/-1;
    }
  }
}
@layer components {
  body.page-sprites #sprite-info-close {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.031372549);
    line-height: 1;
  }
  body.page-sprites #sprite-info-close svg {
    display: block;
    width: 20px;
    height: 20px;
  }
  body.page-sprites #sprite-info-close:hover {
    background: rgba(255, 255, 255, 0.0705882353);
  }
}
@layer components {
  body.page-sprites .sprites-grid:not(.compact) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
  body.page-sprites .sprites-grid:not(.compact) .sprite-info {
    padding: 14px 48px 12px 14px;
  }
  body.page-sprites .sprites-grid:not(.compact) .variants-row {
    padding: 12px;
    gap: 6px;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  }
  body.page-sprites .sprites-grid:not(.compact) .variant-button {
    padding: 8px 3px;
    gap: 6px;
  }
  body.page-sprites .sprites-grid:not(.compact) .variant-label {
    overflow-wrap: normal;
  }
  body.page-sprites .sprites-grid:not(.compact) .variant-button img {
    width: 60px;
    height: 60px;
  }
  @media (max-width: 1199px) {
    body.page-sprites .sprites-grid:not(.compact) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 600px) {
    body.page-sprites .sprites-grid:not(.compact) {
      grid-template-columns: 1fr;
    }
  }
}
@layer components {
  body.page-sprites .sprite-filter-actions {
    display: contents;
  }
  body.page-sprites .filters .sprite-more-filters {
    display: none;
  }
  @media (max-width: 600px) {
    body.page-sprites .filters {
      gap: 12px;
      padding-bottom: 12px;
    }
    body.page-sprites .filters > label {
      grid-column: auto;
      order: 0;
    }
    body.page-sprites .filters > .sprite-extra-filter {
      grid-column: 1/-1;
      order: 2;
    }
    body.page-sprites .filters:not(.sprite-filters-expanded) > .sprite-extra-filter {
      display: none;
    }
    body.page-sprites .sprite-filter-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      grid-column: 1/-1;
      order: 1;
    }
    body.page-sprites .filters .sprite-more-filters {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 44px;
      padding: 8px;
      font-size: 13px;
      margin-left: auto;
    }
    body.page-sprites .filters .sprite-view-switch {
      gap: 4px;
    }
    body.page-sprites .filters .sprite-view-switch button {
      width: 42px;
      height: 44px;
      min-height: 44px;
    }
    body.page-sprites .filters #reset-filters {
      width: 44px;
      height: 44px;
      min-height: 44px;
      padding: 0;
      flex: 0 0 44px;
      justify-content: center;
    }
    body.page-sprites .filters #reset-filters span {
      display: none;
    }
  }
}
@layer surfaces {
  body.page-sprites .filters .sprite-more-filters {
    display: none;
  }
  @media (max-width: 600px) {
    body.page-sprites .filters .sprite-more-filters {
      display: inline-flex;
    }
  }
}
@layer components {
  .home-main, .player-main, .cosmetics-main, .shop-main, .loadout-main {
    padding: 0 32px 32px;
  }
  .cosmetics-tabs button, .cosmetics-type-tabs button, .shop-type-tabs button, .player-family-tabs button {
    background: var(--surface);
    color: #bbc4cd;
    border-color: rgba(255, 255, 255, 0.0941176471);
    box-shadow: none;
  }
  .cosmetics-tabs button[aria-pressed=true], .cosmetics-type-tabs button[aria-pressed=true], .shop-type-tabs button[aria-pressed=true], .player-family-tabs button[aria-pressed=true], .sprite-view-switch button[aria-pressed=true] {
    background: var(--accent);
    color: #11150d;
    border-color: transparent;
  }
  .player-family-tabs {
    border-color: rgba(255, 255, 255, 0.0941176471);
    background: var(--surface);
  }
  .cosmetic-card, .shop-card, .player-modes article, .player-totals > div, .player-search {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.0862745098);
    box-shadow: none;
  }
  .player-team-heading {
    background: rgba(255, 255, 255, 0.0078431373);
    border-color: rgba(255, 255, 255, 0.062745098);
  }
  .player-team-avatars, .player-team-avatars svg:nth-child(even) {
    color: #aeb8c4;
  }
  .player-team-avatars svg {
    filter: none;
  }
  .player-totals > div::before {
    background: var(--accent);
  }
  .player-totals > div[data-stat=wins] strong, .player-mode-numbers [data-stat=wins] strong {
    color: var(--accent);
  }
  .player-result-heading .eyebrow {
    color: var(--accent);
  }
  .recent-players a {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.0941176471);
  }
  @media (max-width: 600px) {
    .home-main, .player-main, .cosmetics-main, .shop-main, .loadout-main {
      padding: 0 20px 24px;
    }
    .player-mode-numbers strong {
      font-size: 18px;
    }
  }
  .player-exclude {
    color: #b9b9b0;
  }
  .variant-button .state-label, .variant-button .variant-label, .storage-note, .checklist-heading span, .player-scope, .cosmetics-note {
    color: var(--muted);
  }
  .sprite-card, .weapon-card, .shop-card, .cosmetic-card, .player-modes article {
    border-radius: 12px;
  }
  .recent-player-chip {
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.0941176471);
    border-radius: 9px;
    overflow: hidden;
  }
  .recent-players .recent-player-chip a {
    border: 0;
    background: transparent;
    border-radius: 0;
    padding-right: 8px;
  }
  .recent-player-remove {
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.062745098);
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 22px;
    cursor: pointer;
  }
  .recent-player-remove:hover {
    background: rgba(255, 255, 255, 0.0392156863);
    color: #fff;
  }
  .recent-player-chip:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  .player-search .player-recent {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.062745098);
  }
  .player-search .player-recent h2 {
    font-size: 11px;
    color: #8996a3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 10px;
  }
  .player-search .recent-players {
    gap: 6px;
  }
  .player-search .recent-player-chip {
    border-radius: 6px;
  }
  .player-search .recent-player-chip a {
    font-size: 12px;
    min-height: 32px;
    padding: 5px 8px;
  }
  .player-search .recent-player-remove {
    width: 32px;
    min-height: 32px;
    font-size: 18px;
  }
  .player-search-row > select {
    max-width: 170px;
    font: inherit;
    padding: 12px 48px 12px 14px;
  }
  #player-result {
    scroll-margin-top: 96px;
  }
  #player-heading:focus {
    outline: none;
  }
  @media (max-width: 600px) {
    .player-search-row > select {
      max-width: none;
      width: 100%;
    }
    .player-search .recent-player-remove {
      width: 36px;
      min-height: 36px;
    }
    .player-search .recent-player-chip a {
      min-height: 36px;
    }
  }
  .player-filter-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #b8c1ca;
    margin-bottom: 8px;
  }
  .player-period-toggle {
    display: flex;
    min-height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.1411764706);
    border-radius: 9px;
    overflow: hidden;
    background: var(--surface);
  }
  .player-period-toggle button {
    border: 0;
    border-radius: 0;
    padding: 12px 16px;
    white-space: nowrap;
    font: 650 14px "Google Sans", sans-serif;
    min-height: 50px;
    cursor: pointer;
  }
  .player-period-toggle button[aria-pressed=true] {
    background: var(--accent);
    color: #11150d;
  }
  .player-period-toggle button:disabled {
    opacity: 0.6;
  }
  .player-filter-row .player-controls {
    align-items: end;
  }
  @media (max-width: 600px) {
    .player-filter-row .player-controls {
      grid-template-columns: 1fr;
    }
    .player-period-toggle button {
      flex: 1;
    }
  }
  .player-linked-names {
    display: flex;
    gap: 10px 20px;
    flex-wrap: wrap;
    margin-top: 14px;
  }
  .player-linked-names > span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
  }
  .player-linked-names strong {
    color: #d9e0e7;
    font-weight: 550;
  }
  .player-linked-names > span > span {
    font-size: 11px;
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, 0.1254901961);
    border-radius: 5px;
    color: var(--muted);
  }
  .player-totals > div[data-stat=wins] strong, .player-mode-numbers [data-stat=wins] strong {
    color: var(--ink);
  }
  .player-totals > div[data-stat=wins] {
    background: var(--surface);
  }
  .player-totals > div[data-stat=wins]::before {
    background: var(--accent);
  }
}
@layer components {
  .cosmetics-page-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .cosmetics-page-intro .tool-open-button {
    flex: none;
  }
  .wishlist-available {
    display: block;
    padding: 12px 16px;
    color: var(--accent);
    background: rgba(229, 242, 74, 0.0392156863);
    border-top: 1px solid rgba(255, 255, 255, 0.062745098);
    font-size: 12px;
    text-decoration: none;
    font-weight: 650;
  }
  .wishlist-unavailable {
    display: block;
    padding: 12px 16px;
    color: #8b98a5;
    border-top: 1px solid rgba(255, 255, 255, 0.062745098);
    font-size: 12px;
  }
  @media (max-width: 600px) {
    .cosmetics-page-intro {
      align-items: stretch;
      flex-direction: column;
      gap: 10px;
    }
  }
  [data-cosmetics-view=wishlist] .cosmetic-card {
    display: flex;
    flex-direction: column;
  }
  [data-cosmetics-view=wishlist] .cosmetic-card-open {
    height: auto;
    flex: 1;
  }
  [data-cosmetics-view=wishlist] .wishlist-available, [data-cosmetics-view=wishlist] .wishlist-unavailable {
    flex-shrink: 0;
  }
  .wishlist-shop-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px 24px;
    margin: 24px 0 12px;
    border: 1px solid rgba(229, 242, 74, 0.3137254902);
    border-radius: 12px;
    background: rgba(229, 242, 74, 0.0352941176);
  }
  .wishlist-shop-alert strong {
    font-size: 20px;
    color: var(--accent);
  }
  .wishlist-shop-alert p {
    font-size: 13px;
    color: var(--muted);
    margin: 6px 0 0;
  }
  .wishlist-shop-alert.is-empty {
    border-color: rgba(255, 255, 255, 0.1254901961);
    background: var(--surface);
  }
  .wishlist-shop-alert.is-empty strong {
    color: #c2cbd4;
    font-size: 17px;
  }
  .wishlist-shop-alert[hidden] {
    display: none;
  }
  @media (max-width: 600px) {
    .wishlist-shop-alert {
      align-items: flex-start;
      flex-direction: column;
      gap: 10px;
      padding: 20px;
    }
    .wishlist-shop-alert strong {
      font-size: 18px;
    }
  }
  #cosmetic-shop-link {
    margin: 0 12px 16px 0;
    display: inline-flex;
  }
  #cosmetic-shop-link[hidden] {
    display: none;
  }
  @media (max-width: 600px) {
    #cosmetic-shop-link {
      width: 100%;
      margin-right: 0;
    }
  }
}
@layer components {
  #cosmetics-storage.wishlist-toast {
    position: fixed;
    inset: auto 24px 24px auto;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: min(460px, 100vw - 40px);
    max-width: none;
    margin: 0;
    padding: 18px;
    border: 0;
    border-radius: 14px;
    background: #252a30;
    color: var(--ink);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    font: 400 16px/1.45 var(--font-body);
  }
  #cosmetics-storage.wishlist-toast[hidden] {
    display: none;
  }
  .wishlist-toast-icon {
    flex: 0 0 22px;
    color: #b6d7ea;
    margin-top: 1px;
  }
  .wishlist-toast-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .wishlist-toast-copy a {
    width: fit-content;
    color: var(--accent);
    font-size: 14px;
    text-decoration: none;
  }
  .wishlist-toast-copy a:hover {
    text-decoration: underline;
  }
  #wishlist-toast-close {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    min-height: 28px;
    height: 28px;
    padding: 4px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
  }
  #wishlist-toast-close:hover {
    background: rgba(255, 255, 255, 0.031372549);
    color: var(--ink);
  }
  .wishlist-toast[data-kind=error] .wishlist-toast-icon {
    color: #f1b6a2;
  }
  @media (max-width: 600px) {
    #cosmetics-storage.wishlist-toast {
      inset: auto 16px 16px;
      width: auto;
      padding: 16px;
      font-size: 14px;
    }
  }
}
@layer components {
  #cosmetics-storage.wishlist-toast[data-kind=info] {
    background: #f4d16d;
    color: #1b1d20;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5333333333);
  }
  .wishlist-toast[data-kind=info] .wishlist-toast-icon,
  .wishlist-toast[data-kind=info] .wishlist-toast-copy a,
  .wishlist-toast[data-kind=info] #wishlist-toast-close {
    color: #1b1d20;
  }
  .wishlist-toast[data-kind=info] .wishlist-toast-copy a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .wishlist-toast[data-kind=info] #wishlist-toast-close:hover {
    background: rgba(0, 0, 0, 0.0509803922);
  }
}
@layer components {
  .wishlist-shop-alert {
    display: block;
  }
  .wishlist-shop-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
  }
  .wishlist-shop-items li {
    flex: 0 0 96px;
  }
  .cosmetics-main .wishlist-shop-item {
    width: 96px;
    height: 116px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 8px;
    border: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--ink);
  }
  .wishlist-shop-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .wishlist-shop-item span {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cosmetics-main .wishlist-shop-item:hover {
    background: rgba(0, 0, 0, 0.35);
  }
  @media (max-width: 600px) {
    .wishlist-shop-items {
      flex-wrap: nowrap;
      overflow-x: auto;
      padding-bottom: 4px;
      scrollbar-width: thin;
    }
  }
}
@layer components {
  .cosmetic-card-heart, .cosmetic-heart-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .cosmetic-card-heart svg, .cosmetic-heart-action svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
}
@layer components {
  .loading-skeleton {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.0705882353);
  }
  .loading-skeleton span, .image-loading {
    background-image: linear-gradient(100deg, rgba(255, 255, 255, 0.0156862745) 20%, rgba(255, 255, 255, 0.0509803922) 45%, rgba(255, 255, 255, 0.0156862745) 70%);
  }
}
@layer components {
  .home-page {
    isolation: isolate;
    background: #121315;
  }
  .home-page .tool-hero, .home-page .tool-hero-content {
    min-height: 440px;
  }
  .home-page .tool-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 64px;
  }
  .home-page .tool-hero h1 {
    max-width: 900px;
    font-size: clamp(56px, 7.2vw, 104px);
    line-height: 1;
    margin-bottom: 24px;
  }
  .home-page .tool-hero-description {
    max-width: 510px;
    font-size: 18px;
    font-weight: 450;
  }
  .home-page .home-main {
    position: relative;
    isolation: isolate;
    padding: 0 32px;
    max-width: none;
  }
  .home-page .home-heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    padding: 76px 0 68px;
    margin: 0;
  }
  .home-page .home-kicker {
    display: block;
    font: 11px/1.5 ui-monospace, monospace;
    letter-spacing: 0.12em;
    color: #b1b1a7;
    margin-bottom: 14px;
  }
  .home-page .home-heading h1 {
    font: 400 clamp(38px, 4.6vw, 64px)/1.06 var(--font-display);
    letter-spacing: 0;
    margin: 0;
  }
  .home-page .home-heading p {
    max-width: none;
    font-size: 20px;
    color: #b1b1a7;
    line-height: 1.65;
    margin: 0 0 4px;
  }
  .home-page .tool-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
  .home-page .tool-card {
    --tile: #d7f690;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 25px;
    min-height: 325px;
    background: var(--tile);
    color: #1b1d20;
    border: 0;
    border-radius: 20px 20px 34px 20px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
  }
  .home-page .tool-card:hover {
    background: var(--tile);
    border: 0;
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  }
  .home-page .tool-card:focus-visible {
    outline-offset: 5px;
  }
  .home-page .tool-card--cream {
    --tile: #eeeae2;
  }
  .home-page .tool-card--blue {
    --tile: #8eb6c5;
  }
  .home-page .tool-card--orange {
    --tile: #ff955b;
  }
  .home-page .tool-card--yellow {
    --tile: #f4d16d;
  }
  .home-page .tool-card--pink {
    --tile: #edb7c0;
  }
  .home-page .tool-card--green {
    --tile: #a1b985;
  }
  .home-page .tool-card h3 {
    font: 400 clamp(23px, 2.1vw, 31px)/1.1 var(--font-display);
    letter-spacing: 0;
    text-transform: uppercase;
    margin: 0 0 13px;
    color: #1b1d20;
  }
  .home-page .tool-card p {
    font: 400 14px/1.5 var(--font-body);
    color: #30322c;
    margin: 0;
  }
  .home-page .tool-card-watermark {
    position: absolute;
    right: -28px;
    top: -30px;
    width: 190px;
    height: 190px;
    opacity: 0.055;
    transform: rotate(-18deg);
    pointer-events: none;
  }
  .home-page .tool-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    font: 10px/1.4 ui-monospace, monospace;
    letter-spacing: 0.04em;
  }
  .home-page .tool-card-symbol {
    display: block;
    width: 76px;
    height: 76px;
    margin: 6px 0 30px;
    flex-shrink: 0;
  }
  .home-page .tool-card-copy {
    margin-bottom: 24px;
  }
  .home-page .tool-card-mobile {
    display: none;
  }
  .home-page .tool-card-action {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
  }
  .home-page .tool-card-arrow {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 0;
    font-size: 28px;
    font-weight: 400;
    transition: transform 0.2s;
  }
  .home-page .tool-card:hover .tool-card-arrow {
    transform: translateX(4px);
  }
  .home-page .home-footnote {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #b1b1a7;
    font-size: 13px;
    padding: 24px 0 0;
  }
  .home-page .home-footnote span {
    font-size: 22px;
    color: var(--accent);
  }
  @media (max-width: 1100px) {
    .home-page .tool-cards {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 600px) {
    .home-page .tool-hero, .home-page .tool-hero-content {
      min-height: 330px;
    }
    .home-page .tool-hero-content {
      padding-block: 44px;
    }
    .home-page .tool-hero h1 {
      font-size: clamp(42px, 11vw, 62px);
    }
    .home-page .tool-hero-description {
      font-size: 16px;
      max-width: 310px;
    }
    .home-page .home-main {
      padding: 0 20px;
    }
    .home-page .home-heading {
      align-items: flex-start;
      gap: 12px;
      padding: 52px 0 42px;
      margin: 0;
    }
    .home-page .home-heading h1 {
      font-size: clamp(36px, 10vw, 44px);
    }
    .home-page .home-heading p {
      font-size: 16px;
    }
    .home-page .tool-cards {
      gap: 12px;
    }
    .home-page .tool-card {
      min-height: 0;
      padding: 16px;
      border-radius: 16px 16px 24px 16px;
    }
    .home-page .tool-card-watermark {
      width: 145px;
      height: 145px;
      right: -28px;
      top: -20px;
    }
    .home-page .tool-card-top {
      min-height: 26px;
      align-items: flex-start;
      font-size: 8px;
      margin-bottom: 12px;
      gap: 8px;
    }
    .home-page .tool-card-top > span:last-child {
      max-width: 90px;
      text-align: right;
    }
    .home-page .tool-card-symbol {
      width: 44px;
      height: 44px;
      margin: 0 0 18px;
    }
    .home-page .tool-card h3 {
      font-size: 20px;
      line-height: 1.15;
      min-height: 2.3em;
      margin-bottom: 10px;
    }
    .home-page .tool-card p {
      line-height: 1.45;
      min-height: 4.35em;
    }
    .home-page .tool-card-full {
      display: none;
    }
    .home-page .tool-card-mobile {
      display: block;
    }
    .home-page .tool-card-copy {
      margin-bottom: 12px;
    }
    .home-page .tool-card-action {
      align-items: center;
      padding-top: 6px;
      gap: 8px;
    }
    .home-page .tool-card-arrow {
      flex: 0 0 28px;
      width: 28px;
      height: 28px;
      font-size: 25px;
    }
  }
  @media (max-width: 350px) {
    .home-page .home-main {
      padding-inline: 12px;
    }
    .home-page .tool-cards {
      gap: 10px;
    }
    .home-page .tool-card {
      padding: 13px;
    }
    .home-page .tool-card h3 {
      font-size: 18px;
    }
  }
}
@layer components {
  body.page-players .player-main {
    padding: 0 32px 28px;
  }
  body.page-players .player-search {
    padding: 24px;
    border-radius: 18px;
    background: var(--surface);
    border-color: transparent;
  }
  body.page-players .player-search-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 400px) max-content;
    justify-content: start;
    gap: 12px;
  }
  body.page-players #player-name {
    width: 100%;
    max-width: 400px;
  }
  body.page-players .player-search input, body.page-players .player-search-row > select {
    background-color: var(--page);
  }
  body.page-players .player-search-row > button {
    white-space: nowrap;
  }
  body.page-players .player-search > label {
    font-size: 12px;
    color: #aab2ba;
  }
  body.page-players .player-search input, body.page-players .player-search-row > select {
    min-height: 48px;
    border-radius: 10px;
  }
  body.page-players #search-hint {
    font-size: 12px;
    color: #89929b;
  }
  body.page-players .player-search .player-recent {
    border: 0;
    padding-top: 0;
    margin-top: 16px;
  }
  body.page-players .player-search .player-recent h2 {
    display: inline-block;
    margin-right: 12px;
    font-weight: 500;
  }
  body.page-players .player-search .recent-players {
    display: inline-flex;
    vertical-align: middle;
  }
  body.page-players #player-status:empty {
    display: none;
  }
  body.page-players #player-result {
    margin-top: 34px;
  }
  body.page-players .player-result-heading {
    border: 0;
    padding: 0 0 26px;
    margin: 0;
    align-items: center;
  }
  body.page-players .player-result-heading h2 {
    font: 700 clamp(30px, 4vw, 48px)/1.15 var(--font-body);
    letter-spacing: -0.045em;
    margin: 8px 0 0;
  }
  body.page-players #player-heading:focus {
    outline: none;
  }
  body.page-players .player-result-heading .eyebrow {
    font: 10px/1.5 ui-monospace, monospace;
    letter-spacing: 0.1em;
    color: #9faab3;
    margin: 0;
  }
  body.page-players #share-player-stats {
    width: auto;
    background: #25282c;
    border-color: rgba(255, 255, 255, 0.1254901961);
    color: #eef0f3;
    min-height: 42px;
    padding: 10px 18px;
    font-size: 12px;
  }
  body.page-players #share-player-stats:hover {
    background: #30343a;
  }
  body.page-players .player-linked-names {
    margin-top: 12px;
    gap: 8px 16px;
  }
  body.page-players .player-linked-names strong {
    font-size: 12px;
  }
  body.page-players .player-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.0705882353);
    padding-top: 22px;
    margin: 0 0 8px;
  }
  body.page-players .player-family-tabs {
    display: flex;
    flex: 1 0 100%;
    width: 100%;
    gap: 6px;
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }
  body.page-players .player-family-tabs button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #aab2ba;
    font-size: 13px;
    font-weight: 550;
  }
  body.page-players .player-family-tabs button[aria-pressed=true] {
    background: var(--accent);
    color: #191c20;
    box-shadow: none;
  }
  body.page-players .player-filter-row .player-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    width: 100%;
  }
  body.page-players .player-controls > div {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  body.page-players .player-filter-row .player-controls label, body.page-players .player-filter-label {
    font-size: 11px;
    color: #8f9aa4;
    margin: 0;
  }
  body.page-players .player-period-toggle {
    min-height: 40px;
    border-radius: 10px;
    border-color: rgba(255, 255, 255, 0.0784313725);
    padding: 3px;
    gap: 3px;
  }
  body.page-players .player-period-toggle button {
    min-height: 32px;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 7px;
    background: transparent;
    color: #aab2ba;
  }
  body.page-players .player-period-toggle button[aria-pressed=true] {
    background: var(--accent);
    color: #171b12;
  }
  body.page-players .player-filter-row .player-controls select {
    min-height: 40px;
    height: 40px;
    font-size: 12px;
    padding-block: 8px;
    border-color: rgba(255, 255, 255, 0.0784313725);
  }
  body.page-players .player-exclude {
    font-size: 12px;
    color: #96a1ac;
    min-height: 40px;
  }
  body.page-players .player-exclude input {
    width: 16px;
    height: 16px;
  }
  body.page-players .player-totals {
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.0784313725);
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface);
    margin: 14px 0 30px;
  }
  body.page-players .player-totals > div, body.page-players .player-totals > div[data-stat=wins] {
    min-height: 128px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 26px;
  }
  body.page-players .player-totals > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.0549019608);
  }
  body.page-players .player-totals > div::before {
    display: none;
  }
  body.page-players .player-totals span {
    color: #97a3ae;
    font-size: 12px;
    font-weight: 450;
    margin-bottom: 16px;
  }
  body.page-players .player-totals strong, body.page-players .player-totals > div[data-stat=wins] strong {
    color: #f4f6f8;
    font: 650 clamp(28px, 3vw, 42px)/1 var(--font-body);
    letter-spacing: -0.045em;
  }
  body.page-players .player-recent-stats {
    gap: 18px;
    margin-bottom: 32px;
  }
  body.page-players .player-recent-stats article {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.0784313725);
    border-radius: 18px;
    padding: 24px;
  }
  body.page-players .player-recent-stats h3 {
    font-size: 18px;
    letter-spacing: -0.025em;
  }
  body.page-players .player-recent-stats .player-scope {
    font-size: 11px;
    margin: 6px 0 12px;
    color: #7d8995;
  }
  body.page-players .player-recent-stats .player-mode-numbers {
    padding-top: 10px;
  }
  body.page-players .player-mode-numbers {
    text-align: left;
  }
  body.page-players .player-mode-numbers span {
    font-size: 11px;
    color: #8f9ba7;
  }
  body.page-players .player-mode-numbers strong {
    font-size: 22px;
    font-weight: 600;
    color: #eef1f5;
  }
  body.page-players #player-sizes-heading {
    font-size: 19px;
    margin-bottom: 18px;
  }
  body.page-players .player-modes {
    gap: 18px;
  }
  body.page-players .player-modes article {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.062745098);
    border-radius: 18px;
  }
  body.page-players .player-team-heading {
    background: transparent;
    padding: 20px 24px;
    border-color: rgba(255, 255, 255, 0.0549019608);
  }
  body.page-players .player-team-heading h4 {
    font-size: 16px;
    font-weight: 600;
  }
  body.page-players .player-team-avatars {
    opacity: 0.6;
  }
  body.page-players .player-team-avatars svg {
    width: 16px;
    height: 20px;
  }
  body.page-players .player-modes .player-mode-numbers {
    padding: 22px 24px;
  }
  body.page-players #player-updated {
    font-size: 11px;
    color: #7d8995;
    margin: 22px 0 12px;
  }
  body.page-players .player-data-notes {
    font-size: 12px;
    color: #8996a2;
  }
  body.page-players .player-data-notes summary {
    cursor: pointer;
    width: fit-content;
    padding-block: 8px;
  }
  body.page-players .player-data-notes p {
    font-size: 12px;
    max-width: 850px;
  }
  @media (max-width: 700px) {
    body.page-players .player-main {
      padding: 0 20px 22px;
    }
    body.page-players .player-search {
      padding: 18px;
    }
    body.page-players .player-search-row {
      display: grid;
      grid-template-columns: 120px minmax(0, 1fr);
      gap: 10px;
    }
    body.page-players .player-search-row > select {
      width: 100%;
      max-width: none;
      padding-left: 10px;
      padding-right: 30px;
      font-size: 13px;
      background-position: right 8px center;
    }
    body.page-players .player-search-row > button {
      grid-column: 1/-1;
      min-height: 44px;
    }
    body.page-players .player-result-heading {
      flex-direction: column;
      align-items: start;
      gap: 14px;
      padding-bottom: 24px;
    }
    body.page-players .player-result-heading h2 {
      font-size: 30px;
    }
    body.page-players #share-player-stats {
      flex-shrink: 0;
      min-height: 38px;
      padding: 9px 12px;
      margin-top: 0;
      font-size: 11px;
    }
    body.page-players .player-linked-names {
      gap: 8px;
    }
    body.page-players .player-linked-names > span {
      flex-wrap: wrap;
      gap: 5px;
    }
    body.page-players .player-linked-names strong {
      font-size: 11px;
    }
    body.page-players .player-filter-row {
      gap: 16px;
      padding-top: 18px;
    }
    body.page-players .player-family-tabs {
      margin-inline: -2px;
    }
    body.page-players .player-family-tabs button {
      padding: 9px 13px;
      font-size: 12px;
    }
    body.page-players .player-filter-row .player-controls {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
    }
    body.page-players .player-controls > div {
      justify-content: space-between;
    }
    body.page-players .player-period-toggle {
      flex: 1;
      max-width: 270px;
    }
    body.page-players .player-period-toggle button {
      flex: 1;
    }
    body.page-players .player-filter-row .player-controls select {
      width: auto;
      max-width: 270px;
      flex: 1;
      margin-left: 10px;
    }
    body.page-players .player-totals {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    body.page-players .player-totals > div {
      grid-column: span 2;
      min-height: 110px;
      padding: 22px 16px;
    }
    body.page-players .player-totals > div:nth-child(n+4) {
      grid-column: span 3;
      border-top: 1px solid rgba(255, 255, 255, 0.0549019608);
    }
    body.page-players .player-totals > div:nth-child(4) {
      border-left: 0;
    }
    body.page-players .player-totals > div:last-child {
      grid-column: span 3;
    }
    body.page-players .player-totals strong {
      font-size: 30px;
    }
    body.page-players .player-totals span {
      font-size: 11px;
      margin-bottom: 14px;
    }
    body.page-players .player-recent-stats article {
      padding: 20px;
    }
    body.page-players .player-mode-numbers {
      gap: 20px 10px;
    }
    body.page-players .player-modes .player-mode-numbers {
      padding: 22px 18px;
    }
    body.page-players .player-mode-numbers strong {
      font-size: 20px;
    }
    body.page-players .player-team-heading {
      padding: 18px;
    }
  }
}
@layer components {
  body.page-players .player-result-heading h2 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0;
  }
  body.page-players .player-filter-row {
    border-top: 0;
    padding-top: 4px;
    gap: 16px;
  }
  body.page-players .player-family-tabs button {
    background: var(--surface);
  }
  body.page-players .player-family-tabs button:hover {
    background: #25292d;
    color: var(--ink);
  }
  body.page-players .player-family-tabs button[aria-pressed=true] {
    background: var(--accent);
    color: #171b12;
  }
  body.page-players #player-totals {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    background: transparent;
    overflow: visible;
    border: 0;
    border-radius: 0;
    margin: 18px 0 24px;
  }
  body.page-players #player-totals > div {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    padding: 24px;
    min-height: 148px;
    background: #eeeae2;
    color: #1b1d20;
  }
  body.page-players #player-totals > div:nth-child(2) {
    background: #8eb6c5;
  }
  body.page-players #player-totals > div:nth-child(3) {
    background: #a1b985;
  }
  body.page-players #player-totals > div:nth-child(4) {
    background: #ffb184;
  }
  body.page-players #player-totals > div:nth-child(5) {
    background: #edb7c0;
  }
  body.page-players #player-totals span {
    position: relative;
    z-index: 1;
    font-size: 14px;
    color: #30383b;
    margin-bottom: 22px;
  }
  body.page-players #player-totals strong {
    position: relative;
    z-index: 1;
    color: #1b1d20;
    font: 700 clamp(28px, 3.2vw, 44px)/1 var(--font-body);
    letter-spacing: -0.04em;
  }
  body.page-players .player-stat-art {
    position: absolute;
    right: -8px;
    bottom: -10px;
    width: 88px;
    height: 88px;
    opacity: 0.09;
    color: #1b1d20;
    transform: rotate(-12deg);
    pointer-events: none;
  }
  body.page-players .player-recent-stats {
    gap: 16px;
    margin-bottom: 32px;
  }
  body.page-players .player-recent-stats article {
    background: var(--surface);
    padding: 26px;
  }
  body.page-players .player-recent-stats h3 {
    font: 400 26px/1.15 var(--font-display);
    letter-spacing: 0;
    margin: 0;
  }
  body.page-players .player-recent-stats .player-scope {
    margin: 8px 0 20px;
  }
  body.page-players .player-recent-stats .player-mode-numbers {
    padding-top: 0;
  }
  body.page-players #player-sizes-heading {
    font: 400 26px/1.15 var(--font-display);
    letter-spacing: 0;
  }
  body.page-players .player-team-heading {
    border: 0;
    padding-bottom: 8px;
  }
  body.page-players .player-team-heading h4 {
    font-weight: 600;
    font-size: 20px;
  }
  body.page-players .player-team-avatars {
    opacity: 0.85;
  }
  body.page-players .player-modes .player-mode-numbers {
    padding-top: 16px;
  }
  @media (max-width: 700px) {
    body.page-players #player-totals {
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 10px;
    }
    body.page-players #player-totals > div {
      min-height: 116px;
      padding: 18px 12px;
      border: 0;
      border-radius: 14px;
    }
    body.page-players #player-totals strong {
      font-size: clamp(23px, 6.6vw, 30px);
    }
    body.page-players #player-totals span {
      font-size: 12px;
      margin-bottom: 18px;
    }
    body.page-players .player-stat-art {
      width: 66px;
      height: 66px;
    }
    body.page-players .player-recent-stats article {
      padding: 20px;
    }
    body.page-players .player-recent-stats h3 {
      font-size: 23px;
    }
    body.page-players .player-recent-stats .player-mode-numbers {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 22px 12px;
    }
    body.page-players .player-team-heading h4 {
      font-size: 18px;
    }
  }
}
@layer components {
  body.page-players .player-filter-row .player-controls label.visually-hidden {
    position: absolute;
    margin: -1px;
  }
  @media (max-width: 700px) {
    body.page-players .player-period-toggle, body.page-players .player-filter-row .player-controls select {
      max-width: none;
      width: 100%;
      margin-left: 0;
    }
  }
  #stats-card-dialog {
    padding: 24px;
    border: 0;
    background: #191b1e;
    max-width: 900px;
  }
  .stats-card-heading h2 {
    font: 400 27px/1.2 var(--font-display);
  }
  #stats-card-status:empty {
    display: none;
  }
  #stats-card-preview {
    margin-top: 20px;
  }
  .stats-card-heading button {
    background: transparent;
    border: 0;
  }
  @media (max-width: 600px) {
    #stats-card-dialog {
      padding: 16px;
    }
    .stats-card-heading h2 {
      font-size: 23px;
    }
  }
}
@layer typography {
  body.page-players p.player-play-time {
    font-size: 14px;
    color: var(--muted);
    margin: 12px 0 0;
  }
}
@layer typography {
  html {
    font-size: 16px;
  }
  body {
    font-size: 1rem;
  }
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
    font-family: var(--font-body);
    font-size: 1rem;
  }
  main button:not(:where([aria-label], .variant-button, .shop-card, .cosmetic-card, .loadout-slot)),
  dialog button:not(:where([aria-label], .shop-card, .cosmetic-card)) {
    font-size: 1rem;
  }
  main p:not(:where(.tool-hero-description, .home-heading p, .player-scope, .player-data-notes p, .home-footnote, #player-updated, #search-hint)),
  .home-page .tool-card p {
    font-size: 1rem;
  }
  .home-page .tool-card-action {
    font-size: 1rem;
  }
  main .eyebrow {
    font-size: 11px;
  }
  .sprite-info-button {
    font-size: 13px;
  }
}
@layer components {
  body.page-loadout .loadout-main {
    padding: 0 32px 32px;
  }
  body.page-loadout .loadout-kicker {
    display: block;
    color: var(--muted);
    font: 11px/1.4 ui-monospace, monospace;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
  }
  body.page-loadout .loadout-main h2, body.page-loadout #loadout-picker h2, body.page-loadout #loadout-image-dialog h2 {
    font: 400 clamp(26px, 2.5vw, 36px)/1.15 var(--font-display);
    letter-spacing: 0;
  }
  body.page-loadout .loadout-context {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(0, 2fr);
    gap: 16px 40px;
    align-items: end;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
  }
  body.page-loadout .loadout-main .weapon-filters {
    padding-top: 26px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
  }
  body.page-loadout .weapon-filters label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
  }
  body.page-loadout .weapon-filters select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 42px 12px 14px;
    background-color: var(--surface);
  }
  body.page-loadout #loadout-status:empty {
    display: none;
  }
  body.page-loadout #loadout-status {
    margin: 10px 0 0;
    color: var(--muted);
  }
  body.page-loadout .loadout-context-note {
    margin: 0;
    color: var(--muted);
  }
  body.page-loadout .loadout-build {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 16px 0 36px;
    margin: 0;
  }
  body.page-loadout .loadout-heading {
    align-items: center;
    gap: 20px;
  }
  body.page-loadout .loadout-heading p {
    color: var(--muted);
    margin: 10px 0 0;
  }
  body.page-loadout #loadout-clear {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
    padding-inline: 0;
  }
  body.page-loadout #loadout-clear:hover {
    color: var(--ink);
  }
  body.page-loadout .loadout-name-row {
    display: flex;
    align-items: end;
    gap: 20px;
    justify-content: space-between;
    margin: 20px 0 24px;
  }
  body.page-loadout .loadout-name-label {
    width: min(100%, 420px);
    max-width: none;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
  }
  body.page-loadout .loadout-name-label input {
    min-height: 48px;
    border-color: var(--line);
    border-radius: 12px;
    background: var(--surface);
  }
  body.page-loadout .loadout-filled {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
    padding-bottom: 14px;
  }
  body.page-loadout .loadout-slots {
    gap: 16px;
    margin: 0 0 24px;
  }
  body.page-loadout .loadout-slot {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    overflow: hidden;
    transition: border-color 0.15s;
  }
  body.page-loadout .loadout-slot.active {
    outline: none;
    border-color: rgba(255, 255, 255, 0.1490196078);
  }
  body.page-loadout .loadout-slot[class*=rarity-] {
    border-top: 1px solid var(--line);
  }
  body.page-loadout .loadout-slot:hover {
    border-color: rgba(255, 255, 255, 0.2509803922);
  }
  body.page-loadout .loadout-main .slot-pick {
    background: transparent;
    border: 0;
    box-shadow: none;
    flex: 1;
    min-height: 252px;
    padding: 8px;
    gap: 10px;
    border-radius: 10px;
    text-align: center;
  }
  body.page-loadout .slot-number {
    align-self: flex-start;
    font: 11px/1.5 ui-monospace, monospace;
    letter-spacing: 0.08em;
    color: #9fa5ab;
  }
  body.page-loadout .slot-pick img {
    height: 116px;
    margin: 8px 0;
  }
  body.page-loadout .slot-pick strong {
    font-size: 17px;
    line-height: 1.35;
    min-height: 2.7em;
    display: grid;
    place-items: center;
  }
  body.page-loadout .slot-pick small {
    font-size: 13px;
    color: var(--muted);
  }
  body.page-loadout .slot-add-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1254901961);
    color: var(--accent);
    font: 300 32px/1 var(--font-body);
    margin: 36px auto 20px;
  }
  body.page-loadout .slot-tools {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    gap: 8px;
  }
  body.page-loadout .loadout-main .slot-tools button {
    width: 36px;
    min-height: 36px;
    padding: 4px;
    border-radius: 9px;
    border-color: transparent;
    background: rgba(255, 255, 255, 0.0235294118);
  }
  body.page-loadout .loadout-share-actions {
    gap: 16px 28px;
    align-items: center;
    justify-content: space-between;
  }
  body.page-loadout .loadout-manage-actions, body.page-loadout .loadout-publish-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }
  body.page-loadout .loadout-share-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
  }
  body.page-loadout .loadout-share-actions svg {
    flex-shrink: 0;
  }
  body.page-loadout .loadout-share-actions button {
    border-radius: 999px;
    background: #25282c;
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.0862745098);
    min-height: 46px;
  }
  body.page-loadout .loadout-share-actions #loadout-save {
    background: var(--accent);
    color: #171b12;
    border-color: transparent;
    box-shadow: none;
  }
  body.page-loadout #loadout-feedback {
    color: var(--ink);
    margin: 20px 0 10px;
  }
  body.page-loadout .loadout-build > .weapon-note {
    color: var(--muted);
    font-size: 13px;
  }
  body.page-loadout .loadout-library {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 32px 0 0;
    border-radius: 0;
    background: transparent;
    margin: 0;
  }
  body.page-loadout .loadout-library > p {
    color: var(--muted);
    margin: 12px 0;
  }
  body.page-loadout .saved-loadout {
    background: var(--surface);
    border-color: var(--line);
    border-radius: 16px;
    padding: 22px;
  }
  body.page-loadout .saved-loadout.current {
    border-color: rgba(255, 255, 255, 0.1882352941);
  }
  body.page-loadout .saved-loadout h3 {
    font-size: 19px;
  }
  body.page-loadout .saved-loadout-actions button {
    border-radius: 999px;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.0235294118);
  }
  body.page-loadout #loadout-library-list > p {
    border: 1px dashed rgba(255, 255, 255, 0.1450980392);
    border-radius: 16px;
    padding: 26px;
    grid-column: 1/-1;
    color: var(--muted);
  }
  body.page-loadout #loadout-picker, body.page-loadout #loadout-image-dialog {
    background: #121315;
    border: 1px solid rgba(255, 255, 255, 0.1450980392);
    border-radius: 22px;
    padding: 28px;
  }
  body.page-loadout #loadout-picker-close, body.page-loadout #loadout-image-close {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--surface);
    border-color: var(--line);
    font-size: 26px;
  }
  body.page-loadout .picker-filters {
    padding-bottom: 24px;
    margin-bottom: 0;
  }
  body.page-loadout .picker-search-label {
    color: var(--muted);
    font-size: 14px;
  }
  body.page-loadout #loadout-picker input, body.page-loadout #loadout-picker select {
    background-color: var(--surface);
    border-color: var(--line);
    border-radius: 10px;
  }
  body.page-loadout #loadout-picker .weapon-grid {
    gap: 14px;
  }
  body.page-loadout #loadout-picker .weapon-card {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
  }
  body.page-loadout #loadout-picker .weapon-card img {
    width: 100%;
    height: 100px;
    object-fit: contain;
  }
  body.page-loadout #loadout-picker .weapon-card h3 {
    font: 600 16px/1.4 var(--font-body);
  }
  body.page-loadout #loadout-picker .weapon-card .weapon-note {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
  }
  body.page-loadout #loadout-picker .weapon-card button {
    border-radius: 999px;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.031372549);
    color: var(--ink);
  }
  @media (max-width: 900px) {
    body.page-loadout .loadout-context {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    body.page-loadout .loadout-context-note {
      display: none;
    }
    body.page-loadout .loadout-slots {
      gap: 10px;
    }
  }
  @media (max-width: 700px) {
    body.page-loadout .loadout-main {
      padding: 0 20px 28px;
    }
    body.page-loadout .loadout-context {
      padding-bottom: 24px;
    }
    body.page-loadout .loadout-main .weapon-filters {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    body.page-loadout .loadout-build {
      padding-top: 8px;
    }
    body.page-loadout .loadout-heading {
      align-items: start;
    }
    body.page-loadout #loadout-clear {
      font-size: 14px;
      white-space: nowrap;
    }
    body.page-loadout .loadout-name-row {
      align-items: start;
      flex-direction: column;
      gap: 10px;
      margin-block: 24px;
    }
    body.page-loadout .loadout-name-label {
      width: 100%;
    }
    body.page-loadout .loadout-filled {
      padding: 0;
    }
    body.page-loadout .loadout-slot {
      padding: 10px;
      border-radius: 16px;
    }
    body.page-loadout .loadout-slot:last-child {
      grid-column: auto;
      width: auto;
      max-width: none;
      justify-self: stretch;
    }
    body.page-loadout .loadout-main .slot-pick {
      min-height: 220px;
      padding: 4px;
    }
    body.page-loadout .slot-pick img {
      height: 90px;
    }
    body.page-loadout .slot-pick strong {
      font-size: 16px;
    }
    body.page-loadout .slot-add-icon {
      margin-block: 26px 12px;
    }
    body.page-loadout .loadout-share-actions {
      display: flex;
      flex-direction: column;
      align-items: stretch;
    }
    body.page-loadout .loadout-manage-actions, body.page-loadout .loadout-publish-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }
    body.page-loadout .loadout-publish-actions {
      padding-top: 16px;
      border-top: 1px solid var(--line);
    }
    body.page-loadout .loadout-share-actions button {
      width: 100%;
      padding-inline: 12px;
    }
    body.page-loadout .saved-loadout {
      padding: 18px;
    }
    body.page-loadout #loadout-picker {
      padding: 20px 16px;
    }
    body.page-loadout #loadout-picker h2 {
      font-size: 24px;
    }
    body.page-loadout #loadout-picker .weapon-card {
      padding: 14px 10px;
    }
  }
}
@layer components {
  #loadout-feedback:empty {
    display: none;
  }
}
@layer typography {
  .page-loadout .loadout-disclaimer {
    font-size: 13px;
    line-height: 1.6;
  }
}
@layer components {
  .page-loadout .loadout-disclaimer {
    margin: 28px 0 0;
  }
  @media (max-width: 700px) {
    .page-loadout .loadout-share-actions button {
      gap: 7px;
      white-space: nowrap;
      min-height: 44px;
    }
    .page-loadout .loadout-share-actions svg {
      width: 16px;
      height: 16px;
    }
  }
}
@layer typography {
  @media (max-width: 700px) {
    .page-loadout .loadout-share-actions button {
      font-size: 14px;
    }
  }
}
@layer components {
  .page-shop .shop-intro {
    justify-content: flex-end;
  }
  .shop-results-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    margin-block: 18px 24px;
  }
  .shop-results-meta #shop-status, .shop-results-meta #shop-updated {
    margin: 0;
  }
  .shop-results-meta #shop-updated {
    color: var(--muted);
    font-size: 13px;
  }
  body :is(.shop-type-tabs, .cosmetics-type-tabs, .player-family-tabs).filter-tiles {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 4px;
    margin: 20px -4px;
    border: 0;
    background: transparent;
    border-radius: 0;
    scrollbar-width: thin;
  }
  body :is(.shop-type-tabs, .cosmetics-type-tabs, .player-family-tabs).filter-tiles button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 104px;
    height: 104px;
    min-height: 104px;
    flex: 0 0 104px;
    padding: 10px 6px;
    border: 0;
    border-radius: 16px;
    background: var(--surface);
    color: #bbc4cd;
    font-weight: 500;
    line-height: 1.15;
    white-space: normal;
  }
  body :is(.shop-type-tabs, .cosmetics-type-tabs, .player-family-tabs).filter-tiles button svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  body :is(.shop-type-tabs, .cosmetics-type-tabs, .player-family-tabs).filter-tiles button span {
    min-height: 36px;
    display: grid;
    place-items: center;
  }
  body :is(.shop-type-tabs, .cosmetics-type-tabs, .player-family-tabs).filter-tiles button:hover {
    background: #24272b;
    color: var(--ink);
  }
  body :is(.shop-type-tabs, .cosmetics-type-tabs, .player-family-tabs).filter-tiles button[aria-pressed=true] {
    background: var(--accent);
    color: #171b12;
    border: 0;
  }
  @media (max-width: 600px) {
    body :is(.shop-type-tabs, .cosmetics-type-tabs, .player-family-tabs).filter-tiles button {
      width: 96px;
      height: 96px;
      min-height: 96px;
      flex-basis: 96px;
      border-radius: 14px;
    }
  }
}
@layer components {
  body .home-heading.hero-intro-layout, body .tool-hero-content.hero-intro-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 44px;
  }
  .hero-intro-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
  }
  .creator-support {
    align-self: center;
    padding: 20px;
    border: 0;
    border-radius: 16px;
    background: rgba(25, 27, 30, 0.9019607843);
    text-align: left;
    color: var(--ink);
  }
  .creator-support-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .creator-support-label {
    font: 10px/1.4 ui-monospace, monospace;
    letter-spacing: 0.08em;
    color: var(--muted);
  }
  .creator-support-prompt {
    font-size: 14px;
  }
  .creator-code-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    margin-top: 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
  }
  .creator-code-button strong {
    font: 400 28px/1.15 var(--font-display);
    letter-spacing: 0.02em;
  }
  .creator-code-button svg {
    flex-shrink: 0;
  }
  .creator-copied-icon {
    display: none;
  }
  .creator-code-button[data-copied=true] .creator-copy-icon {
    display: none;
  }
  .creator-code-button[data-copied=true] .creator-copied-icon {
    display: block;
  }
  .creator-support-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
    font-size: 11px;
    color: var(--muted);
  }
  .creator-support-bottom a {
    color: #c5ccc7;
    text-decoration: none;
  }
  .creator-support-bottom a:hover {
    color: var(--accent);
  }
  @media (max-width: 900px) {
    body .home-heading.hero-intro-layout, body .tool-hero-content.hero-intro-layout {
      grid-template-columns: minmax(0, 1fr);
      gap: 22px;
    }
    .creator-support {
      width: 100%;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 0 18px;
      padding: 12px 14px;
      border-radius: 12px;
    }
    .creator-support-copy {
      gap: 3px;
    }
    .creator-support-label {
      display: block;
      font-size: 9px;
      color: var(--muted);
    }
    .creator-support-prompt {
      font-size: 12px;
    }
    .creator-code-button {
      width: auto;
      padding: 4px 0;
      margin: 0;
    }
    .creator-code-button strong {
      font-size: 22px;
    }
    .creator-support-bottom {
      margin: 0;
      font-size: 10px;
      grid-column: 1;
      grid-row: 2;
    }
    .creator-support-bottom a {
      display: none;
    }
    .creator-code-button {
      grid-row: 1/3;
      grid-column: 2;
    }
  }
}
@layer components {
  @media (max-width: 600px) {
    .hero-intro-layout > .creator-support {
      display: none;
    }
  }
}
@layer components {
  .page-shop .shop-results-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-block: 12px 24px;
  }
  .page-shop .shop-card-body {
    height: auto;
    min-height: 174px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .page-shop .shop-card h3 {
    margin: 0;
    min-height: 2.8em;
    font-size: 16px;
    line-height: 1.4;
  }
  .page-shop .shop-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 5px;
    min-height: 53px;
    margin: 14px 0 0;
    line-height: 1.2;
  }
  .vbucks-amount {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
  }
  .vbucks-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: var(--accent);
  }
  .shop-price strong {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
  }
  .shop-price del {
    font-size: 13px;
    line-height: 1.2;
    color: #90999f;
    text-decoration: none;
  }
  .shop-price del span {
    text-decoration: line-through;
  }
  .shop-price del .vbucks-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
    color: #90999f;
  }
  .page-shop .shop-badge {
    min-height: 18px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--muted);
  }
  #shop-detail-price .vbucks-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
  @media (max-width: 600px) {
    .page-shop .shop-card-body {
      padding: 14px;
      min-height: 172px;
    }
    .shop-price strong {
      font-size: 20px;
    }
    .vbucks-icon {
      width: 20px;
      height: 20px;
      flex-basis: 20px;
    }
  }
}
@layer typography {
  .page-shop #shop-updated {
    font-size: 12px;
    line-height: 1.5;
  }
}
@layer surfaces {
  .page-shop .shop-card {
    transition: background-color 0.18s ease, transform 0.18s ease;
  }
  @media (hover: hover) and (pointer: fine) {
    .page-shop .shop-card:hover {
      background: #202327;
      transform: translateY(-3px);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .page-shop .shop-card {
      transition: none;
    }
    .page-shop .shop-card:hover {
      transform: none;
    }
  }
}
@layer surfaces {
  :where(.cosmetic-card, .shop-card, .weapon-card, .sprite-card,
  .loadout-slot, .saved-loadout, .stats > div, .filters,
  .loadout-library, .player-search, .player-totals,
  .player-recent-stats article, .player-modes article,
  .pirate-stage, .pirate-panel, .comparison-heads > div,
  .comparison-slot, .weapon-comparison, .comparison-drawer,
  .loading-skeleton) {
    border-color: transparent;
    box-shadow: none;
  }
  :where(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea) {
    border-color: transparent;
    box-shadow: none;
  }
  .shop-card-body {
    border-top-color: transparent;
  }
}
@layer components {
  body.page-pirate .pirate-game {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 32px 32px;
  }
  body.page-pirate .pirate-play-area {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
  }
  body.page-pirate .pirate-stage, body.page-pirate .pirate-haul {
    border: 0;
    border-radius: 20px;
    padding: 28px;
    background: var(--surface);
    min-width: 0;
  }
  body.page-pirate .pirate-stage {
    background: var(--surface);
  }
  body.page-pirate .pirate-stage-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
  }
  body.page-pirate .pirate-kicker {
    color: var(--muted);
    font: 11px/1.4 ui-monospace, monospace;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
  }
  body.page-pirate .pirate-stage-top .pirate-kicker {
    margin: 0;
  }
  body.page-pirate .pirate-odds-badge {
    color: var(--muted);
    font-size: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 6px 10px;
    white-space: nowrap;
  }
  body.page-pirate .pirate-chest {
    display: grid;
    place-items: center;
    margin: 12px auto 20px;
    color: #a1b985;
  }
  body.page-pirate .pirate-chest svg {
    width: 80px;
    height: 80px;
  }
  body.page-pirate .pirate-count {
    font: 400 clamp(56px, 6vw, 88px)/1.1 var(--font-display);
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
  body.page-pirate .pirate-count-label {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
  }
  body.page-pirate .pirate-status {
    margin: 22px 0 8px;
    color: var(--ink);
  }
  body.page-pirate .pirate-run-chance {
    color: var(--muted);
    margin: 0 auto 24px;
    max-width: 440px;
    line-height: 1.5;
  }
  body.page-pirate .pirate-actions {
    gap: 12px;
  }
  body.page-pirate .pirate-actions #auto, body.page-pirate .pirate-actions #reset.search-finished {
    min-height: 48px;
    min-width: 220px;
    background: var(--accent);
    color: #171b12;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    font: 650 16px/1.3 var(--font-body);
    box-shadow: none;
  }
  body.page-pirate .pirate-actions #auto:hover, body.page-pirate .pirate-actions #reset:hover {
    filter: brightness(1.05);
    box-shadow: none;
  }
  body.page-pirate .pirate-batch {
    border-top: 1px solid rgba(255, 255, 255, 0.0549019608);
    margin-top: 24px;
    padding-top: 20px;
    display: grid;
    grid-template-columns: minmax(0, 120px) auto auto;
    gap: 10px;
    width: fit-content;
    margin-inline: auto;
  }
  body.page-pirate .pirate-batch label {
    grid-column: 1/-1;
    text-align: left;
    font-size: 13px;
    color: var(--muted);
  }
  body.page-pirate .pirate-batch input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    font: 400 16px var(--font-body);
  }
  body.page-pirate .pirate-batch button {
    border: 0;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.0509803922);
    color: var(--ink);
    font: 500 14px var(--font-body);
    min-height: 44px;
    cursor: pointer;
  }
  body.page-pirate .pirate-batch button:disabled {
    opacity: 0.5;
    cursor: wait;
  }
  body.page-pirate .pirate-haul h2, body.page-pirate .pirate-panel h2 {
    font: 400 28px/1.2 var(--font-display);
    margin: 0 0 12px;
    letter-spacing: 0;
  }
  body.page-pirate .pirate-haul-empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    text-align: center;
  }
  body.page-pirate .pirate-haul-empty i {
    font-size: 38px;
    opacity: 0.35;
  }
  body.page-pirate .pirate-haul-empty p {
    margin: 0;
  }
  body.page-pirate .pirate-prizes {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 0;
  }
  body.page-pirate .pirate-prize {
    border: 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 14px;
    border-radius: 10px;
  }
  body.page-pirate .pirate-prize-icon {
    color: #a1b985;
  }
  body.page-pirate .pirate-prize-result {
    color: var(--accent);
    font-size: 18px;
  }
  body.page-pirate .pirate-prize small {
    color: var(--muted);
  }
  body.page-pirate .pirate-extras {
    margin-top: 24px;
    gap: 24px;
  }
  body.page-pirate .pirate-panel {
    padding: 28px;
    border-radius: 20px;
  }
  body.page-pirate .pirate-panel .eyebrow {
    color: var(--muted);
  }
  body.page-pirate .pirate-panel .pirate-primary {
    background: var(--accent);
    color: #171b12;
    border: 0;
    box-shadow: none;
    border-radius: 999px;
    padding: 12px 20px;
  }
  body.page-pirate .history-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 20px;
  }
  body.page-pirate .history-row strong {
    color: var(--ink);
  }
  body.page-pirate .pirate-mini-stats > div {
    background: rgba(0, 0, 0, 0.2);
  }
  body.page-pirate .hunt-bar-track > span {
    background: #a1b985;
  }
  body.page-pirate .pirate-help {
    margin-top: 24px;
    padding-top: 20px;
    border-color: rgba(255, 255, 255, 0.062745098);
  }
  body.page-pirate .pirate-help h2 {
    color: var(--ink);
    font: 400 26px/1.2 var(--font-display);
    margin: 0;
  }
  body.page-pirate .pirate-help-content {
    max-width: 900px;
    padding-top: 16px;
  }
  body.page-pirate .pirate-luck {
    border: 0;
    background: rgba(0, 0, 0, 0.2);
  }
  body.page-pirate .pirate-stage.found .pirate-chest {
    color: #e7b756;
  }
  body.page-pirate .is-opening .pirate-chest svg {
    animation: chest-rock 0.8s ease-in-out infinite;
  }
  body.page-pirate [hidden] {
    display: none;
  }
  @media (max-width: 900px) {
    body.page-pirate .pirate-play-area {
      grid-template-columns: 1fr;
    }
    body.page-pirate .pirate-haul-empty {
      min-height: 150px;
    }
  }
  @media (max-width: 600px) {
    body.page-pirate .pirate-game {
      padding: 0 20px 24px;
    }
    body.page-pirate .pirate-stage, body.page-pirate .pirate-haul, body.page-pirate .pirate-panel {
      padding: 20px;
      border-radius: 16px;
    }
    body.page-pirate .pirate-play-area, body.page-pirate .pirate-extras {
      gap: 16px;
    }
    body.page-pirate .pirate-stage-top {
      gap: 8px;
    }
    body.page-pirate .pirate-kicker {
      font-size: 10px;
    }
    body.page-pirate .pirate-odds-badge {
      font-size: 11px;
    }
    body.page-pirate .pirate-chest svg {
      width: 64px;
      height: 64px;
    }
    body.page-pirate .pirate-actions button {
      width: 100%;
    }
    body.page-pirate .pirate-batch {
      width: 100%;
      grid-template-columns: minmax(0, 1fr) auto auto;
    }
    body.page-pirate .pirate-batch button {
      padding-inline: 12px;
    }
    body.page-pirate .pirate-haul h2, body.page-pirate .pirate-panel h2 {
      font-size: 24px;
    }
    body.page-pirate .pirate-prize h3 {
      line-height: 1.35;
    }
    body.page-pirate .pirate-prize-result {
      font-size: 16px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    body.page-pirate .is-opening .pirate-chest svg {
      animation: none;
    }
  }
  @keyframes chest-rock {
    0%, 100% {
      transform: rotate(-4deg);
    }
    50% {
      transform: rotate(4deg);
    }
  }
}
@layer typography {
  body.page-pirate .pirate-run-chance, body.page-pirate .pirate-note, body.page-pirate .pirate-help p, body.page-pirate .pirate-odds {
    font-size: 13px;
  }
  body.page-pirate .pirate-kicker {
    font-size: 11px;
  }
  body.page-pirate .pirate-prize h3 {
    font-size: 15px;
  }
}
@layer components {
  body.page-pirate .pirate-power-hour {
    margin: 16px auto 0;
    width: fit-content;
    text-align: left;
  }
  body.page-pirate .pirate-power-hour label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 15px;
    cursor: pointer;
    min-height: 36px;
  }
  body.page-pirate .pirate-power-hour input {
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 0;
    accent-color: var(--accent);
  }
  body.page-pirate .pirate-power-hour label span {
    color: var(--muted);
    font-size: 12px;
  }
}
@layer components {
  body.page-weapons .weapon-drawer {
    background: #191b1e;
    border: 1px solid rgba(255, 255, 255, 0.0784313725);
    border-radius: 16px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
    backdrop-filter: none;
    max-height: calc(100dvh - 100px);
  }
  body.page-weapons .weapon-main .comparison-toggle {
    border-radius: 0;
    border: 0;
    background: #24272b;
    min-height: 56px;
    padding: 10px 20px;
    font-size: 14px;
    box-shadow: none;
  }
  body.page-weapons .comparison-toggle img {
    width: 32px;
    height: 32px;
  }
  body.page-weapons #comparison-panel {
    max-height: calc(100dvh - 170px);
  }
  body.page-weapons .weapon-drawer .weapon-comparison {
    background: transparent;
    padding: 20px 24px 24px;
  }
  body.page-weapons .weapon-section-heading {
    align-items: center;
  }
  body.page-weapons .weapon-drawer .weapon-section-heading h2 {
    margin: 0;
    font: 400 24px/1.2 var(--font-display);
  }
  body.page-weapons #comparison-feedback:empty {
    display: none;
  }
  body.page-weapons .weapon-drawer .comparison-heads {
    gap: 16px;
    margin: 20px 0 10px;
    align-items: stretch;
  }
  body.page-weapons .weapon-drawer .comparison-pick {
    border: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    min-width: 0;
    gap: 0;
  }
  body.page-weapons .weapon-drawer .comparison-pick > label {
    align-self: flex-start;
    font-size: 10px;
    color: var(--muted);
    padding-right: 28px;
    letter-spacing: 0.08em;
  }
  body.page-weapons .weapon-drawer .comparison-pick > .comparison-remove {
    top: 6px;
    right: 6px;
    display: grid;
    place-items: center;
    line-height: 1;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    border-radius: 6px;
    font-size: 23px;
    width: 32px;
    height: 32px;
    background: transparent;
  }
  body.page-weapons .weapon-drawer .weapon-summary {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 6px 12px;
    min-height: 86px;
    margin: 12px 0 16px;
    background: transparent;
  }
  body.page-weapons .weapon-drawer .weapon-summary img {
    grid-row: 1/3;
    width: 72px;
    height: 72px;
    object-fit: contain;
    align-self: center;
  }
  body.page-weapons .weapon-drawer .weapon-summary h3 {
    font: 650 16px/1.3 var(--font-body);
    margin: 0;
    align-self: end;
    overflow-wrap: anywhere;
  }
  body.page-weapons .weapon-drawer .weapon-summary p {
    margin: 0;
    align-self: start;
    line-height: 1.4;
    color: var(--muted);
  }
  body.page-weapons .weapon-drawer .comparison-pick > select {
    border: 0;
    border-radius: 8px;
    background-color: #292c30;
    min-height: 44px;
    width: 100%;
    text-overflow: ellipsis;
  }
  body.page-weapons .weapon-drawer #weapon-comparison[data-columns="2"] .comparison-row {
    grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
    min-height: 50px;
    border-color: rgba(255, 255, 255, 0.0431372549);
  }
  body.page-weapons .weapon-drawer .comparison-row .stat-better {
    color: #95dcb1;
  }
  @media (max-width: 600px) {
    body.page-weapons .weapon-drawer {
      width: calc(100% - 20px);
      bottom: 10px;
      max-height: calc(100dvh - 85px);
    }
    body.page-weapons .weapon-main .comparison-toggle {
      padding: 10px 14px;
    }
    body.page-weapons #comparison-panel {
      max-height: calc(100dvh - 145px);
    }
    body.page-weapons .weapon-drawer .weapon-comparison {
      padding: 16px 12px 20px;
    }
    body.page-weapons .weapon-drawer .comparison-heads {
      gap: 8px;
      margin-top: 16px;
    }
    body.page-weapons .weapon-drawer .comparison-pick {
      padding: 12px 8px;
    }
    body.page-weapons .weapon-drawer .weapon-summary {
      display: flex;
      flex-direction: column;
      text-align: center;
      min-height: 158px;
      gap: 8px;
      margin: 10px 0 12px;
    }
    body.page-weapons .weapon-drawer .weapon-summary img {
      width: 72px;
      height: 64px;
    }
    body.page-weapons .weapon-drawer .weapon-summary h3 {
      font-size: 14px;
      align-self: center;
    }
    body.page-weapons .weapon-drawer .weapon-summary p {
      align-self: center;
    }
    body.page-weapons .weapon-drawer .comparison-pick > select {
      padding-left: 8px;
      padding-right: 30px;
      background-position: right 10px center;
    }
    body.page-weapons .weapon-drawer #weapon-comparison[data-columns="2"] .comparison-row {
      grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
      column-gap: 4px;
    }
    body.page-weapons .weapon-drawer .weapon-section-heading h2 {
      font-size: 21px;
    }
  }
}
@layer typography {
  body.page-weapons .weapon-drawer .weapon-summary p {
    font-size: 12px;
  }
  body.page-weapons .weapon-drawer .weapon-note {
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted);
  }
  body.page-weapons .weapon-drawer .comparison-label {
    font-size: 12px;
    line-height: 1.35;
    color: var(--muted);
  }
  @media (max-width: 600px) {
    body.page-weapons .weapon-drawer .weapon-summary p {
      font-size: 11px;
    }
  }
}
@layer components {
  body.page-players .player-name-field {
    position: relative;
    min-width: 0;
    width: 100%;
    max-width: 400px;
  }
  body.page-players .player-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 110;
    max-height: 320px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
    margin: 0;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.0941176471);
    border-radius: 12px;
    background: #24272b;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
  body.page-players .player-suggestions[hidden] {
    display: none;
  }
  body.page-players .player-suggestions [role=option] {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 7px;
    color: var(--ink);
    font: 400 16px/1.35 var(--font-body);
    overflow-wrap: anywhere;
    cursor: pointer;
  }
  body.page-players .player-suggestions [role=option]:hover, body.page-players .player-suggestions [aria-selected=true] {
    background: var(--accent);
    color: #171b12;
  }
  body.page-players .player-suggestions-note {
    padding: 12px;
    color: var(--muted);
    font: 400 13px/1.5 var(--font-body);
  }
}
@layer components {
  body.page-players .player-daily {
    margin: 32px 0;
  }
  body.page-players .player-daily h3 {
    font: 400 26px/1.15 var(--font-display);
    margin: 0;
  }
  body.page-players .player-daily > .player-scope {
    margin: 8px 0 18px;
    font-size: 12px;
  }
  body.page-players .player-daily-scroll {
    overflow-x: auto;
    border-radius: 16px;
    background: var(--surface);
  }
  body.page-players .player-daily table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
  }
  body.page-players .player-daily th, body.page-players .player-daily td {
    padding: 16px 24px;
    text-align: right;
    white-space: nowrap;
  }
  body.page-players .player-daily thead th {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
  }
  body.page-players .player-daily tbody th {
    text-align: left;
    font-weight: 500;
  }
  body.page-players .player-daily thead th:first-child {
    text-align: left;
  }
  body.page-players .player-daily tbody tr {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  body.page-players .player-daily-today {
    margin-left: 10px;
    font-size: 11px;
    color: var(--accent);
  }
  body.page-players .player-daily .player-daily-unavailable {
    color: var(--muted);
  }
  @media (max-width: 700px) {
    body.page-players .player-daily h3 {
      font-size: 23px;
    }
    body.page-players .player-daily table {
      font-size: 13px;
    }
    body.page-players .player-daily th, body.page-players .player-daily td {
      padding: 14px 12px;
    }
    body.page-players .player-daily tbody th {
      position: sticky;
      left: 0;
      background: var(--surface);
    }
    body.page-players .player-daily-today {
      display: block;
      margin: 3px 0 0;
    }
  }
}
@layer components {
  .legal-main {
    max-width: 920px;
    padding: 56px 32px 24px;
    margin-inline: auto;
  }
  .legal-kicker {
    color: var(--muted);
    font: 12px/1.4 ui-monospace, monospace;
    letter-spacing: 0.1em;
  }
  .legal-main h1 {
    font: 400 clamp(36px, 5vw, 60px)/1.1 var(--font-display);
    margin: 16px 0;
  }
  .legal-main header > p {
    color: var(--muted);
    line-height: 1.6;
  }
  .legal-main .legal-date {
    font-size: 12px;
  }
  .legal-main section {
    margin-top: 36px;
  }
  .legal-main h2 {
    font: 600 22px/1.3 var(--font-body);
    margin: 0 0 12px;
  }
  .legal-main section p {
    line-height: 1.75;
    color: #b7bec5;
    margin: 0 0 14px;
  }
  .legal-main a {
    color: var(--accent);
    text-underline-offset: 3px;
  }
  .legal-main .legal-draft {
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(215, 246, 144, 0.062745098);
    color: var(--accent);
    font-size: 14px;
    line-height: 1.6;
  }
  .footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 28px;
  }
  .footer-legal-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
  }
  .footer-legal-links a:hover {
    color: var(--accent);
  }
  .site-footer .footer-note {
    max-width: 920px;
    margin-top: 10px;
    line-height: 1.7;
  }
  body .creator-support .creator-disclosure {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
  }
  @media (max-width: 900px) {
    .creator-disclosure {
      grid-column: 1/-1;
      grid-row: 3;
    }
  }
  @media (max-width: 600px) {
    .legal-main {
      padding: 36px 20px 16px;
    }
    .legal-main h2 {
      font-size: 20px;
    }
  }
}
@layer components {
  .insight-main {
    padding: 0 32px 28px;
  }
  .insight-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 16px 24px;
    margin-bottom: 18px;
  }
  .insight-toolbar label {
    display: grid;
    gap: 8px;
    min-width: 240px;
    color: var(--muted);
    font-size: 13px;
  }
  .insight-toolbar select {
    min-height: 48px;
  }
  .insight-toolbar > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
  }
  .insight-toolbar > a:hover {
    color: var(--accent);
  }
  .insight-main .insight-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
  }
  .insight-note a {
    color: inherit;
    text-underline-offset: 3px;
  }
  .insight-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 32px;
  }
  .insight-metrics > div {
    display: grid;
    gap: 18px;
    padding: 24px;
    border-radius: 16px;
    background: #eeeae2;
    color: #1b1d20;
  }
  .insight-metrics > div:nth-child(2) {
    background: #8eb6c5;
  }
  .insight-metrics > div:nth-child(3) {
    background: #a1b985;
  }
  .insight-metrics span {
    font-size: 14px;
  }
  .insight-metrics strong {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -0.04em;
  }
  .insight-boards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
    margin-bottom: 28px;
  }
  .page-cosmetic-stats .insight-boards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
  .page-cosmetic-stats .insight-boards > .insight-panel {
    display: flex;
    flex-direction: column;
  }
  .page-cosmetic-stats .insight-boards > .insight-panel > [id^=board-] {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .page-cosmetic-stats .insight-boards .insight-more {
    align-self: flex-start;
    margin-top: auto;
    margin-bottom: 8px;
  }
  .insight-panel {
    background: var(--surface);
    border-radius: 18px;
    overflow: hidden;
    min-width: 0;
  }
  .insight-panel > header {
    padding: 24px 24px 16px;
  }
  .insight-main h2 {
    font: 400 27px/1.2 var(--font-display);
    margin: 0 0 10px;
  }
  .insight-panel > header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
  }
  .insight-panel table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
  }
  .insight-panel thead th {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    padding: 10px 14px;
    text-align: left;
  }
  .insight-panel thead th:last-child {
    text-align: right;
    padding-right: 24px;
  }
  .insight-panel tbody tr {
    border-top: 1px solid rgba(255, 255, 255, 0.031372549);
  }
  .insight-panel tbody th {
    padding: 9px 0;
    text-align: left;
    min-width: 0;
    font-weight: 500;
  }
  .insight-rank {
    width: 44px;
    color: #7d878f;
    font-size: 12px;
    padding: 10px 12px 10px 24px;
  }
  .insight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
  }
  .insight-item:hover strong {
    color: var(--accent);
  }
  .insight-item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex: 0 0 44px;
  }
  .insight-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .insight-item small, .insight-value small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    margin-top: 3px;
  }
  .insight-in-shop {
    color: var(--accent);
  }
  .insight-value {
    padding: 10px 24px 10px 12px;
    text-align: right;
    white-space: nowrap;
    font-size: 16px;
  }
  .insight-more {
    margin: 8px 14px;
    font-size: 13px;
  }
  .insight-ranking-tabs {
    display: flex;
    gap: 6px;
    margin-top: 16px;
  }
  .insight-ranking-tabs button {
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    padding: 8px 12px;
    cursor: pointer;
  }
  .insight-ranking-tabs button:hover {
    background: rgba(255, 255, 255, 0.0352941176);
    color: var(--ink);
  }
  .insight-ranking-tabs button[aria-pressed=true] {
    background: var(--accent);
    color: #191b1e;
  }
  .insight-empty {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    padding: 0 24px 24px;
  }
  .insight-breakdowns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
    align-items: start;
  }
  .insight-distribution {
    list-style: none;
    padding: 0 24px;
    margin: 0 0 24px;
  }
  .insight-distribution li {
    margin: 16px 0;
  }
  .insight-distribution li > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
  }
  .insight-distribution small {
    color: var(--muted);
    font-size: 11px;
  }
  .insight-bar {
    height: 5px;
    margin: 8px 0 4px;
    background: rgba(255, 255, 255, 0.0431372549);
    border-radius: 3px;
    overflow: hidden;
  }
  .insight-bar > span {
    display: block;
    height: 100%;
    background: var(--accent);
  }
  .insight-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0 0 24px;
  }
  .insight-source-links a {
    color: var(--accent);
    font-size: 14px;
    text-decoration: none;
  }
  .status-overview {
    --signal: var(--accent);
    padding: 32px;
    border-radius: 20px;
    background: var(--surface);
    margin: 20px 0 32px;
  }
  .status-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font: 11px/1.5 ui-monospace, monospace;
    letter-spacing: 0.08em;
  }
  .status-dot-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--signal);
  }
  .status-overview h2 {
    font-size: clamp(32px, 4vw, 52px);
    margin: 24px 0 12px;
    color: var(--signal);
  }
  .status-overview > p {
    margin: 10px 0 0;
    color: #bdc3c8;
    line-height: 1.6;
  }
  [data-state=unknown] {
    --signal: #abb3bb;
  }
  [data-state=degraded_performance], [data-state=partial_outage], [data-state=under_maintenance] {
    --signal: #f4d16d;
  }
  [data-state=major_outage] {
    --signal: #ff958a;
  }
  .status-section {
    margin: 32px 0;
  }
  .status-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .status-service {
    --signal: var(--accent);
    background: var(--surface);
    border-radius: 14px;
    padding: 20px;
  }
  .status-service[data-state=unknown] {
    --signal: #abb3bb;
  }
  .status-service[data-state=degraded_performance], .status-service[data-state=partial_outage], .status-service[data-state=under_maintenance] {
    --signal: #f4d16d;
  }
  .status-service[data-state=major_outage] {
    --signal: #ff958a;
  }
  .status-service h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 550;
  }
  .status-service-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--signal);
    font-size: 12px;
  }
  .status-service-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
  }
  .status-incident {
    padding: 0 24px 24px;
  }
  .status-incident h3 {
    font-size: 18px;
    margin: 8px 0;
  }
  .status-incident p {
    color: #b6bdc5;
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-line;
  }
  .status-incident small {
    color: var(--muted);
    font-size: 11px;
  }
  .status-incident-stage {
    color: var(--accent);
    font-size: 12px;
    text-transform: capitalize;
  }
  @media (max-width: 1000px) {
    .page-cosmetic-stats .insight-boards {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .insight-breakdowns {
      grid-template-columns: 1fr;
    }
    .status-service-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 700px) {
    .insight-main {
      padding: 0 20px 22px;
    }
    .insight-boards {
      grid-template-columns: 1fr;
      gap: 16px;
    }
    .page-cosmetic-stats .insight-boards {
      grid-template-columns: 1fr;
    }
    .insight-metrics {
      gap: 10px;
    }
    .insight-metrics > div {
      padding: 16px 12px;
      gap: 14px;
    }
    .insight-metrics span {
      font-size: 11px;
    }
    .insight-metrics strong {
      font-size: 26px;
    }
    .insight-panel > header {
      padding: 20px 18px 12px;
    }
    .insight-main h2 {
      font-size: 24px;
    }
    .insight-rank {
      padding-left: 16px;
      width: 32px;
    }
    .insight-value {
      padding-right: 16px;
    }
    .insight-item {
      gap: 8px;
    }
    .insight-item img {
      width: 36px;
      height: 36px;
      flex-basis: 36px;
    }
    .status-overview {
      padding: 24px;
    }
    .status-overview h2 {
      font-size: 34px;
    }
    .status-service-grid {
      gap: 10px;
    }
    .status-service {
      padding: 16px;
    }
    .status-service h3 {
      font-size: 14px;
    }
  }
}
@layer utilities {
  .page-insights [hidden] {
    display: none;
  }
  .page-insights .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}
