/* The site on top of the original stylesheet, in Counter-Strike's colours:
   the slate black of the CS2 menus, the orange of the logo and the buy menu,
   and a warm gold for money. --primary is the orange for text, rings and
   highlights (7:1 on the background); text on an orange fill is the near
   black --primary-foreground. The few surfaces the compiled sheet paints are
   retinted from neutral grey to the blue-black the game uses. */
:root {
  --background: #0b0e12;
  --card: #10151b;
  --panel: #151b23;
  --border: #ffffff17;
  --muted-foreground: #9aa3ad;
  --primary: #f0a23b;
  --primary-foreground: #1a1206;
  --gold: #ffc94d;
  --gold-ink: #3a2600;
  --ct: #5d79ae;
  --panel-2: #1a222c;
}
.bg-background { background-color: var(--background); }
html { background-color: var(--background); }

.focus-ring:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

.receipt-paper {
  background: #f7f1e3;
}

input[type='range'].accent-primary {
  accent-color: var(--primary);
}

/* Lightweight Charts draws into a canvas that must fill its box. */
.chart-box > div {
  position: absolute;
  inset: 0;
}

/* utilities used here that the original page set never used */
.bg-black\/60 {
  background-color: rgba(0, 0, 0, 0.6);
}
.text-white\/80 {
  color: rgba(255, 255, 255, 0.8);
}
.border-up {
  border-color: var(--up);
}
.duration-150 {
  transition-duration: 0.15s;
}
.max-h-\[70vh\] {
  max-height: 70vh;
}
.overflow-auto {
  overflow: auto;
}
.p-10 {
  padding: 2.5rem;
}
.top-12 {
  top: 3rem;
}
.right-0 {
  right: 0;
}
.z-\[60\] {
  z-index: 60;
}
.\[\&_\.text-muted-foreground\]\:text-background\/70 .text-muted-foreground {
  color: color-mix(in oklab, var(--background) 70%, transparent);
}
.hover\:shadow-primary:hover {
  box-shadow: 0 12px 30px -10px rgba(240, 162, 59, 0.55);
}

@layer components {
  /* Buttons. One system for every action on the site: a solid face, a crisp
     1px edge and a solid bottom lip that the button sinks into when pressed. No
     pills, no glow, no arrows. */
  .btn {
    --lip: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0 1.25rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 3px 0 var(--lip);
    transform: translateY(0);
    transition: transform 80ms ease, box-shadow 80ms ease, background-color 120ms ease;
    cursor: pointer;
    user-select: none;
  }
  .btn:hover {
    transform: translateY(1px);
    box-shadow: 0 2px 0 var(--lip);
  }
  .btn:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 var(--lip);
  }
  .btn:focus-visible {
    outline: 2px solid var(--foreground);
    outline-offset: 3px;
  }
  .btn:disabled,
  .btn[aria-disabled='true'] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 3px 0 var(--lip);
  }
  .btn-sm {
    height: 2.125rem;
    padding: 0 0.875rem;
    font-size: 0.8125rem;
    border-radius: 8px;
  }
  .btn-lg {
    height: 3rem;
    padding: 0 1.75rem;
    font-size: 1rem;
    border-radius: 12px;
  }
  .btn-primary {
    --lip: #7a4a0c;
    background: #e8962c;
    border-color: #c97a17;
    color: #1a1206;
  }
  .btn-primary:hover {
    background: #f3a53c;
  }
  .btn-dark {
    --lip: #000;
    background: #18202a;
    border-color: #2d3947;
    color: var(--foreground);
  }
  .btn-dark:hover {
    background: #1f2935;
  }
  .btn-light {
    --lip: #7d7d7d;
    background: #f4f4f4;
    border-color: #d6d6d6;
    color: #0a0a0a;
  }
  .btn-light:hover {
    background: #fff;
  }
  .btn-icon {
    width: 2.5rem;
    padding: 0;
  }
}

@layer components {
  .flow-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  @media (min-width: 640px) {
    .flow-steps {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }
  }
}

/* The brand glyph shows the mark in colour, not a silhouette tinted with the
   text colour. Doubled class so it wins over the compiled rule. */
.brand-glyph.brand-glyph {
  background: url(/brand/mark.png) 50% / contain no-repeat;
  border-radius: 24%;
  -webkit-mask: none;
  mask: none;
}

/* A CS2 skin sits on a dark plate lit from below in its rarity colour, the way
   the game's own inventory shows it. */
.skin-art {
  background:
    radial-gradient(120% 70% at 50% 110%, color-mix(in oklab, var(--rarity) 42%, transparent), transparent 70%),
    linear-gradient(180deg, #151515, #0e0e0e);
}
.skin-art::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--rarity);
}

/* Utilities the skin pages use that the original page set never did. */
.-mt-12 { margin-top: -3rem; }
.accent-\[var\(--primary\)\] { accent-color: var(--primary); }
.align-\[-0\.1em\] { vertical-align: -0.1em; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.bg-transparent { background-color: transparent; }
.blur-2xl { filter: blur(40px); }
.capitalize { text-transform: capitalize; }
.fee-rail { padding-top: 4px; }
.gap-\[0\.18em\] { gap: 0.18em; }
.gap-x-4 { column-gap: 1rem; }
.grid-cols-\[112px_minmax\(0\,1fr\)\] { grid-template-columns: 112px minmax(0, 1fr); }
.grid-cols-\[20px_minmax\(0\,1fr\)\] { grid-template-columns: 20px minmax(0, 1fr); }
.grid-cols-\[48px_minmax\(0\,1fr\)_auto\] { grid-template-columns: 48px minmax(0, 1fr) auto; }
.h-20 { height: 5rem; }
.h-28 { height: 7rem; }
.left-3 { left: 0.75rem; }
.max-h-\[340px\] { max-height: 340px; }
.max-h-\[82\%\] { max-height: 82%; }
.max-w-\[86\%\] { max-width: 86%; }
.min-h-\[320px\] { min-height: 320px; }
.object-contain { object-fit: contain; }
.pb-10 { padding-bottom: 2.5rem; }
.pl-9 { padding-left: 2.25rem; }
.pr-1 { padding-right: 0.25rem; }
.pt-0\.5 { padding-top: 0.125rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.right-3 { right: 0.75rem; }
.right-4 { right: 1rem; }
.ring-primary { --tw-ring-color: var(--primary); }
.scale-150 { scale: 1.5; }
.top-3 { top: 0.75rem; }
.w-1 { width: 0.25rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-28 { width: 7rem; }
.z-\[1\] { z-index: 1; }
@media (min-width: 64rem) {
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:grid-cols-\[minmax\(0\,1fr\)_320px\] { grid-template-columns: minmax(0, 1fr) 320px; }
  .lg\:items-start { align-items: flex-start; }
}
.bg-\[\#cf6a32\] { background-color: #cf6a32; }
.bg-\[\#ffd700\] { background-color: #ffd700; }
.text-black { color: #000; }
.col-span-3 { grid-column: span 3 / span 3; }
.disabled\:opacity-40:disabled { opacity: 0.4; }
.grid-cols-\[20px_64px_minmax\(0\,1fr\)_auto\] { grid-template-columns: 20px 64px minmax(0, 1fr) auto; }
.h-1\.5 { height: 0.375rem; }
.bg-primary\/15 { background-color: color-mix(in oklab, var(--primary) 15%, transparent); }
.border-primary\/30 { border-color: color-mix(in oklab, var(--primary) 30%, transparent); }
.font-serif { font-family: Georgia, 'Times New Roman', serif; }
.whitespace-pre-line { white-space: pre-line; }
.bg-primary\/5 { background-color: color-mix(in oklab, var(--primary) 5%, transparent); }
