/* The casino of trade-crates.tf (casino-server.js): the pages of steamcards.trade with the colours of trade-crates.tf (orange on near-black) and without the shop. */
:root, :root[data-theme="dark"] {
  --bg:#100f0d; --surface:#191613; --surface2:#211e1a; --line:#3c3630; --fg:#f5f5f5; --mut:#a6a9b0;
  --accent:#ff8a16; --accent2:#ffa43b; --grad:linear-gradient(135deg,#ffa43b,#ff8a16); --gold:#f0b93a;
}
body.tc #nav a:not([data-page="casino"]):not(.tcn), body.tc #statusPill, body.tc .tb-cart, body.tc #chip[href="#/orders"] small, body.tc #menu a, body.tc #finfo, body.tc #finfoBtn, body.tc #pauseBanner, body.tc #tuBanner { display: none !important }
body.tc #chip { pointer-events: none }
body.tc .tb-brand img { width: 34px; height: 34px; border-radius: 8px }
/* the bottom bar (casino + links of the site) exists on phones only; on a desktop the top bar has the button back to the site */
@media (min-width: 761px) { body.tc #nav { display: none } }
body.tc #tcNavAdmin[hidden], body.tc #tcTopAdmin[hidden] { display: none !important }
/* the items panel (public/tc-items.js) */
.tci-tabs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 4px 0 10px }
.tci-tabs button { height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); cursor: pointer }
.tci-tabs button.on { background: var(--grad); color: #1a0f05; border-color: transparent; font-weight: 600 }
.tci-tabs .small { margin-left: auto }
.tci-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; max-height: 340px; overflow: auto; margin: 8px 0; padding: 2px }
.tci-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); cursor: pointer }
.tci-row.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface2)) }
.tci-row input { accent-color: var(--accent) }
.tci-img { width: 40px; height: 40px; flex: none; border-radius: 6px; background: var(--surface); object-fit: contain }
.tci-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.tci-act { gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px }
.tci-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface2) }
.tci-steps { padding-left: 18px; margin: 10px 0; display: grid; gap: 6px }
.tci-code { font: 700 18px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 2px; padding: 3px 8px; border-radius: 8px; background: var(--surface); border: 1px dashed var(--accent) }
.tci-hist { padding-left: 18px; margin: 6px 0 }
