/* THE LOOK OF THE CASINO OF trade-crates.tf (owner, 12 Nov 2026: a new design for the lobby and the games, the theme of the site, nothing blue).
   Loaded after the stylesheets of steamcards.trade (casino-server.js recolours those: no blue is left in them); this file changes the SHAPE of things: flat dark panels with a coloured top edge and rivets,
   hazard stripes, stencil headings, brass and orange metal for the coin, the wheel and the balls. Palette: near-black #100f0d / #191613 / #211e1a, line #3c3630, orange #ff8a16, amber #ffb02e, rust #b8531a, cream #f5ecd9;
   red and green only where a game means loss and win. */
body.tc #p-casino, body.tc #p-fair {
  --tc-bg:#100f0d; --tc-s1:#191613; --tc-s2:#211e1a; --tc-s3:#2e2924; --tc-line:#3c3630; --tc-or:#ff8a16; --tc-or2:#ffb02e; --tc-rust:#b8531a; --tc-cream:#f5ecd9; --tc-dim:#a6a9b0;
  --tc-font:'Chakra Petch','Segoe UI',system-ui,sans-serif;
  --bg:#100f0d; --surface:#191613; --surface2:#211e1a; --line:#3c3630; --fg:#f5f5f5; --mut:#a6a9b0; --accent:#ff8a16; --accent2:#ffb02e; --grad:linear-gradient(180deg,#ffa43b,#e86f00);
  --glass:#191613; --edge:#3c3630;
}
/* the arena: plain near-black with a faint crate pattern, no glow */
body.tc #p-casino { border-radius:10px; background:#100f0d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='84' viewBox='0 0 72 84'%3E%3Cpath d='M36 6 60 20v28L36 62 12 48V20zM12 20l24 14 24-14M36 34v28' fill='none' stroke='%23ff8a16' stroke-opacity='.045' stroke-width='1.4'/%3E%3C/svg%3E"); border:1px solid #3c3630; box-shadow:none }
body.tc #p-casino::before, body.tc #p-casino::after { display:none }
body.tc #p-casino h1, body.tc #p-casino h2, body.tc #p-casino h3, body.tc #p-fair h1, body.tc #p-fair h2, body.tc #p-fair h3 { font-family:var(--tc-font); letter-spacing:.02em }
/* hazard stripe (a thin band used as a divider and on the jackpot) */
.tc-haz { height:8px; background:repeating-linear-gradient(-45deg,#ff8a16 0 9px,#14110d 9px 18px); border-radius:2px }

/* ---------- panels: flat, a coloured top edge, rivets in the corners ---------- */
body.tc #p-casino .cx-stage, body.tc #p-casino .cx-jp, body.tc #p-casino .cx-bar, body.tc #p-casino .casstrip, body.tc #p-casino .cx-wpanel, body.tc #p-fair .card, body.tc #p-casino .tcl-card, body.tc #p-casino .tcl-jack, body.tc #p-casino .tcl-tile, body.tc #p-casino .tcl-wins {
  background:#191613; border:1px solid #3c3630; border-top:3px solid var(--tc-or); border-radius:6px; box-shadow:0 10px 26px rgba(0,0,0,.4); backdrop-filter:none;
}
body.tc #p-casino .cx-stage { position:relative; background:linear-gradient(#191613,#161411) }
body.tc #p-casino .cx-stage::before { content:''; position:absolute; inset:6px; border-radius:3px; pointer-events:none; background:
  radial-gradient(circle,#49423a 0 2px,transparent 2.5px) 0 0 / 100% 100% no-repeat; opacity:0 }
body.tc #p-casino .cx-bar { display:flex; align-items:center; gap:14px; padding:10px 14px; border-top-color:var(--tc-or) }
body.tc #p-casino .cx-back { background:#211e1a; border:1px solid #3c3630; border-radius:4px; color:#f5ecd9; font-family:var(--tc-font); font-weight:700; text-transform:uppercase; letter-spacing:.08em }
body.tc #p-casino .cx-back:hover { border-color:var(--tc-or); color:var(--tc-or2) }
body.tc #p-casino .cx-mark { background:#211e1a; border:1px solid #3c3630; border-radius:6px; box-shadow:none }
body.tc #p-casino .cx-title small { font-family:var(--tc-font); letter-spacing:.14em; text-transform:uppercase; color:var(--tc-dim) } body.tc #p-casino .cx-title small b { color:var(--tc-or) }
body.tc #p-casino .cx-title h2 { font-family:var(--tc-font); text-transform:uppercase; letter-spacing:.06em; font-size:22px; color:#ffffff }
body.tc #p-casino .cx-pill { background:#211e1a; border:1px solid #3c3630; border-radius:4px; box-shadow:none }
body.tc #p-casino .cx-pill.main { background:#1d1913; border-color:var(--tc-rust); box-shadow:inset 3px 0 0 var(--tc-or) }
body.tc #p-casino .cx-pill small { font-family:var(--tc-font); text-transform:uppercase; letter-spacing:.12em; color:var(--tc-dim) } body.tc #p-casino .cx-pill b { font-family:var(--tc-font); color:#ffffff }
body.tc #p-casino .cx-add { background:linear-gradient(180deg,#ffa43b,#e86f00); color:#1a0f05; border-radius:4px; font-family:var(--tc-font); text-transform:uppercase; letter-spacing:.08em; border:1px solid #7a3a00; box-shadow:0 2px 0 #7a3a00 }
body.tc #p-casino .cx-jp { display:flex; align-items:center; gap:12px; padding:8px 14px; background:#14110d; border-top-color:var(--tc-or2) }
body.tc #p-casino .casstrip { background:#161411; border-top-width:1px; border-top-color:#3c3630; border-radius:4px }
body.tc #p-casino .cx-more h3 { font-family:var(--tc-font); text-transform:uppercase; letter-spacing:.12em; color:var(--tc-dim); font-size:13px }
body.tc #p-casino .cx-mini { background:#191613; border:1px solid #3c3630; border-radius:4px; box-shadow:none } body.tc #p-casino .cx-mini:hover { border-color:var(--tc-or); transform:translateY(-2px) }

/* ---------- buttons, inputs, selectors ---------- */
body.tc #p-casino .btn:not(.ghost):not(.sm):not(.cfquick *), body.tc #p-fair .btn:not(.ghost):not(.sm) {
  background:linear-gradient(180deg,#ffa43b,#e86f00); color:#1a0f05; border:1px solid #7a3a00; border-radius:4px; box-shadow:0 3px 0 #7a3a00; font-family:var(--tc-font); font-weight:700; text-transform:uppercase; letter-spacing:.1em; text-shadow:none;
}
body.tc #p-casino .btn:not(.ghost):not(.sm):not(.cfquick *):hover:not([disabled]) { transform:translateY(-1px); box-shadow:0 4px 0 #7a3a00,0 8px 22px rgba(255,138,22,.28) }
body.tc #p-casino .btn:not(.ghost):not(.sm):not(.cfquick *):active:not([disabled]) { transform:translateY(2px); box-shadow:0 1px 0 #7a3a00 }
body.tc #p-casino .btn.ghost, body.tc #p-casino .btn.sm, body.tc #p-casino .cfquick .btn { background:#211e1a; color:#f5ecd9; border:1px solid #4a433b; border-radius:4px; box-shadow:none; font-family:var(--tc-font); text-transform:uppercase; letter-spacing:.06em }
body.tc #p-casino .btn.ghost:hover, body.tc #p-casino .btn.sm:hover, body.tc #p-casino .cfquick .btn:hover { border-color:var(--tc-or); color:var(--tc-or2) }
body.tc #p-casino .btn[disabled] { opacity:.45; box-shadow:none }
body.tc #p-casino input, body.tc #p-casino select, body.tc #p-fair input, body.tc #p-fair select { background:#161411; border:1px solid #3c3630; border-radius:4px; color:#ffffff; font-family:var(--tc-font) }
body.tc #p-casino input:focus, body.tc #p-casino select:focus { border-color:var(--tc-or); box-shadow:0 0 0 2px rgba(255,138,22,.25) }
body.tc #p-casino .seg { background:#161411; border:1px solid #3c3630; border-radius:4px; padding:3px }
body.tc #p-casino .seg button { border-radius:3px; font-family:var(--tc-font); text-transform:uppercase; letter-spacing:.06em; color:var(--tc-dim) }
body.tc #p-casino .seg button.on { background:linear-gradient(180deg,#ffa43b,#e86f00); color:#1a0f05; box-shadow:none }
body.tc #p-casino .field > span, body.tc #p-casino label.field span { font-family:var(--tc-font); text-transform:uppercase; letter-spacing:.1em; font-size:11px; color:var(--tc-dim) }
body.tc #p-casino .cx-tab { background:#211e1a; border:1px solid #3c3630; border-radius:3px; color:#d6d8dc; font-family:var(--tc-font); text-transform:uppercase; letter-spacing:.08em }
body.tc #p-casino .cx-tab.on, body.tc #p-casino .cx-tab:hover { background:var(--tc-or); border-color:var(--tc-or); color:#1a0f05 }

/* ---------- the lobby (public/tc-lobby.js) ---------- */
.tcl { display:grid; gap:18px }
.tcl-hero { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:18px; align-items:stretch }
.tcl-copy { position:relative; padding:28px 28px 24px; background:#191613; border:1px solid #3c3630; border-left:6px solid var(--tc-or); border-radius:6px; overflow:hidden }
.tcl-copy::after { content:''; position:absolute; right:-40px; top:-30px; width:260px; height:300px; background:url('/casino/tc-logo.svg') center / contain no-repeat; opacity:.07; transform:rotate(12deg); pointer-events:none }
.tcl-tag { display:inline-block; padding:4px 10px; background:var(--tc-or); color:#1a0f05; font:700 11px/1 var(--tc-font); letter-spacing:.18em; text-transform:uppercase; border-radius:2px }
.tcl-copy h1 { margin:14px 0 10px; font:700 clamp(34px,5.2vw,60px)/.98 var(--tc-font); text-transform:uppercase; letter-spacing:.01em; color:#ffffff }
.tcl-copy h1 em { font-style:normal; color:var(--tc-or) }
.tcl-copy p { max-width:54ch; color:#d2cec9 }
.tcl-cta { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0 14px }
.tcl-chips { display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; list-style:none }
.tcl-chips li { display:inline-flex; align-items:center; gap:7px; padding:5px 10px; background:#211e1a; border:1px solid #3c3630; border-radius:3px; font:600 12px var(--tc-font); letter-spacing:.06em; text-transform:uppercase; color:#d6d8dc }
.tcl-chips svg { width:15px; height:15px; color:var(--tc-or) }
.tcl-jack { display:flex; flex-direction:column; justify-content:flex-start; gap:6px; padding:0 0 16px; overflow:hidden; text-align:center; background:#14110d; border-top:3px solid var(--tc-or2) }
.tcl-jack .tc-haz { border-radius:0; height:12px }
.tcl-jack small { margin-top:14px; font:700 12px var(--tc-font); letter-spacing:.28em; text-transform:uppercase; color:var(--tc-or2) }
.tcl-jack b { display:flex; align-items:center; justify-content:center; gap:12px; margin:8px 0 4px; font:700 clamp(40px,6vw,68px)/1 var(--tc-font); color:#ffffff; text-shadow:0 0 28px rgba(255,138,22,.35); font-variant-numeric:tabular-nums }
.tcl-jack b .gem { width:46px; height:46px }
.tcl-jack .tcl-sub { padding:0 18px; color:#a6a9b0; font-size:12.5px }
.tcl-jack .tcl-crate { width:74px; height:74px; margin:12px auto 0; filter:drop-shadow(0 6px 14px rgba(0,0,0,.6)) }
.tcl-head { display:flex; align-items:center; gap:14px; flex-wrap:wrap }
.tcl-head h2 { margin:0; font:700 22px var(--tc-font); text-transform:uppercase; letter-spacing:.1em; color:#ffffff }
.tcl-head .tc-haz { flex:1; min-width:40px; height:6px; opacity:.85 }
.tcl-tabs { display:flex; flex-wrap:wrap; gap:6px }
.tcl-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(228px,1fr)); gap:14px }
.tcl-card { position:relative; display:flex; flex-direction:column; text-decoration:none; color:inherit; overflow:hidden; border-top:3px solid hsl(var(--h) 90% 52%); transition:transform .15s,border-color .15s,box-shadow .15s }
.tcl-card:hover { transform:translateY(-4px); border-color:hsl(var(--h) 90% 55%); box-shadow:0 16px 34px rgba(0,0,0,.55),0 0 0 1px hsl(var(--h) 90% 52% / .5) }
.tcl-card.off { opacity:.5; filter:grayscale(.6) }
.tcl-art { position:relative; display:grid; place-items:center; height:112px; background:radial-gradient(circle at 50% 120%,hsl(var(--h) 70% 30% / .55),transparent 70%),repeating-linear-gradient(-45deg,rgba(255,255,255,.025) 0 8px,transparent 8px 16px),#161411 }
.tcl-art .cx-logo { transform:scale(1.5); transition:transform .2s } .tcl-card:hover .tcl-art .cx-logo { transform:scale(1.65) rotate(-3deg) }
.tcl-kind, .tcl-rtp { position:absolute; top:8px; padding:3px 7px; border-radius:2px; font:700 10px/1 var(--tc-font); letter-spacing:.12em; text-transform:uppercase }
.tcl-kind { left:8px; background:#14110d; color:#d6d8dc; border:1px solid #3c3630 } .tcl-rtp { right:8px; background:hsl(var(--h) 85% 50%); color:#1a0f05 }
.tcl-body { display:flex; flex-direction:column; gap:6px; padding:12px 14px 14px; flex:1 }
.tcl-body h3 { margin:0; font:700 18px var(--tc-font); text-transform:uppercase; letter-spacing:.05em; color:#ffffff }
.tcl-body p { margin:0; font-size:12.5px; color:#a6a9b0; flex:1 }
.tcl-meta { display:flex; gap:14px; margin-top:4px } .tcl-meta span { display:grid } .tcl-meta small { font:600 10px var(--tc-font); letter-spacing:.12em; text-transform:uppercase; color:#777d87 } .tcl-meta b { font:700 14px var(--tc-font); color:#f5ecd9 }
.tcl-play { margin-top:8px; display:flex; align-items:center; justify-content:space-between; padding:8px 12px; background:#211e1a; border:1px solid #3c3630; border-radius:3px; font:700 12px var(--tc-font); letter-spacing:.16em; text-transform:uppercase; color:var(--tc-or2) }
.tcl-card:hover .tcl-play { background:var(--tc-or); color:#1a0f05; border-color:var(--tc-or) }
.tcl-trust { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px }
.tcl-tile { display:grid; gap:4px; padding:14px 16px; border-top-width:2px }
.tcl-tile svg { width:26px; height:26px; color:var(--tc-or) } .tcl-tile b { font:700 15px var(--tc-font); text-transform:uppercase; letter-spacing:.06em; color:#ffffff } .tcl-tile span { font-size:12.5px; color:#a6a9b0 }
.tcl-wins { padding:12px 16px } .tcl-wins h3 { margin:0 0 8px; font:700 14px var(--tc-font); text-transform:uppercase; letter-spacing:.12em; color:var(--tc-or2) }
.tcl-18 { font-size:12px; color:#777d87; text-align:center }
@media (max-width:860px) { .tcl-hero { grid-template-columns:1fr } .tcl-copy { padding:22px 18px } }

/* ---------- the coin (coinflip): a brass coin with a riveted rim; heads = crate, tails = key ---------- */
body.tc .rc-edge { background:linear-gradient(135deg,#7a3a00,#d9731a 45%,#5b2a05); border:1px solid #3a1a02 }
body.tc .rc-face { background:radial-gradient(circle at 34% 28%,#ffd9a0 0,#ffa43b 22%,#e07b1a 55%,#8a4308 100%); color:#2a1405; box-shadow:inset 0 0 0 4px #7a3a00,inset 0 0 0 6px rgba(255,220,160,.55) }
body.tc .rc-tails { background:radial-gradient(circle at 34% 28%,#f1f1ee 0,#c9ccd0 25%,#8b8f97 60%,#4a4d55 100%); color:#221f1b; box-shadow:inset 0 0 0 4px #3a3d44,inset 0 0 0 6px rgba(255,255,255,.5) }
body.tc .rc-ring { border-color:rgba(26,15,5,.55) } body.tc .rc-ring-inner { border-style:dotted; border-width:3px; opacity:.55 }
body.tc .rc-glyph { width:50px; height:50px; filter:drop-shadow(0 1px 0 rgba(255,255,255,.55)) } body.tc .rc-label { font-family:var(--tc-font); font-weight:700; letter-spacing:.22em; text-shadow:0 1px 0 rgba(255,255,255,.5) }

/* ---------- the roulette: brass and steel, crate hub ---------- */
body.tc #p-casino .rw-hub:empty { background:#14110d url('/casino/tc-logo.svg') center / 70% no-repeat; box-shadow:inset 0 0 0 3px #e07b1a,0 4px 14px rgba(0,0,0,.6) }
body.tc .rw-hub { font-family:var(--tc-font) } body.tc .rw-hub.rw-red { background:#c23b30 } body.tc .rw-hub.rw-black { background:#141210 } body.tc .rw-hub.rw-green { background:#587a2c }
body.tc .rw-num { font-family:var(--tc-font); fill:#f5ecd9 }

/* ---------- plinko: cream pegs, glossy orange balls ---------- */
body.tc #p-casino .pl-peg { fill:#f5ecd9; filter:drop-shadow(0 0 3px rgba(255,176,46,.55)) }
body.tc #p-casino .pl-ball { fill:url(#plLogo); stroke:#fff4d6; stroke-width:.8; filter:drop-shadow(0 0 8px rgba(255,138,22,.85)) }
body.tc .pl-mult { font-family:var(--tc-font); font-weight:700 }

/* ---------- the rest of the game boards ---------- */
body.tc #p-casino .cx-game .card, body.tc #p-casino [class$="board"] { border-radius:6px }
body.tc #p-casino table.ltable th { font-family:var(--tc-font); text-transform:uppercase; letter-spacing:.1em; color:var(--tc-dim) }
body.tc #p-casino .cfres, body.tc #p-casino .res, body.tc #p-casino [class*="result"] { font-family:var(--tc-font) }
body.tc .tci-tabs button { border-radius:3px; font-family:var(--tc-font); text-transform:uppercase; letter-spacing:.08em }
body.tc .topbar { background:#100f0d; border-bottom:1px solid #3c3630 }
body.tc .tb-brand span { font-family:var(--tc-font); text-transform:uppercase; letter-spacing:.06em }

/* Back to the main site (trade-crates.tf), next to the brand in the top bar. */
body.tc .tc-back { display:inline-flex; align-items:center; margin-left:12px; padding:6px 12px; border:1px solid #3a2a18; border-radius:8px; background:#1a140d; color:#ffb14a; font:600 .8rem/1 var(--tc-font); text-decoration:none; white-space:nowrap }
body.tc .tc-back:hover { background:#ff8a16; border-color:#ff8a16; color:#1b1006 }
@media (max-width:520px) { body.tc .tc-back { margin-left:8px; padding:6px 9px; font-size:.74rem } }
/* The Admin button of the top bar (admins only): filled, so it is found at once. */
body.tc .tc-back.tc-admin { background:linear-gradient(135deg,#ffd23f,#ff8a16); border-color:transparent; color:#1b0b04; font-weight:800 }
body.tc .tc-back.tc-admin:hover { filter:brightness(1.1); background:linear-gradient(135deg,#ffd23f,#ff8a16); color:#1b0b04 }

/* The chips of the roulette follow the stake (public/roulette.js rtTier): cream under 1 credit, red 1-5, orange 5-25, dark with a gold rim 25-100, gold from 100. */
body.tc .rtchip.rtc0, body.tc .rtchipbtn.rtc0 { background:#f4ead6; color:#3a2a14; border-color:#b8a27a }
body.tc .rtchip.rtc1, body.tc .rtchipbtn.rtc1 { background:#d8352a; color:#ffffff; border-color:#ffd6cf }
body.tc .rtchip.rtc2, body.tc .rtchipbtn.rtc2 { background:#ff8a16; color:#1b0b04; border-color:#ffe0b8 }
body.tc .rtchip.rtc3, body.tc .rtchipbtn.rtc3 { background:#1a1411; color:#ffd23f; border-color:#ffb14a }
body.tc .rtchip.rtc4, body.tc .rtchipbtn.rtc4 { background:linear-gradient(135deg,#ffd23f,#e09a10); color:#2a1a00; border-color:#fff3c4 }
body.tc .rtchip[class*="rtc"] { border-width:2px; border-style:dashed; box-shadow:0 2px 6px rgba(0,0,0,.45) }
body.tc .rtchipbtn[class*="rtc"] { text-shadow:none }

/* The results of the coinflip (live strip, public/casino.js casChip) look like the two faces of the coin: heads = a gold coin with the crate, tails = a SILVER coin with the key. */
body.tc .cas-c.cas-h { background:radial-gradient(circle at 32% 28%,#ffe6b0 0%,#f6b73f 38%,#d9822b 72%,#8a4a12 100%); color:#4a2606; box-shadow:inset 0 0 0 2px rgba(255,230,170,.55),0 1px 4px rgba(0,0,0,.5) }
body.tc .cas-c.cas-t { background:radial-gradient(circle at 32% 28%,#fcfbfa 0%,#dcd8d3 38%,#9da3ab 72%,#5d626a 100%); color:#2b2723; box-shadow:inset 0 0 0 2px rgba(255,255,255,.55),0 1px 4px rgba(0,0,0,.5) }

/* Tower: the tiles are low (26-38 px), the logo of a safe tile used to be taller than the tile and hung out of it: a fixed size that fits every height, centred inside the tile. */
body.tc #p-tower .sg-tile .sg-in { overflow: hidden }
body.tc #p-tower .sg-tile .sg-logo { width: 22px; height: 22px; max-width: 80%; max-height: 80%; object-fit: contain }

