/* ==========================================================================
   /promotions — every promotion Stake, Shuffle and BC.Game are publishing,
   as one sortable list.

   Layers on assets/css/crash-tracker.css (the .crx system) and only adds what
   that file has no component for: the casino strip, the filter bar, the
   promotion table's cells and the mobile fold. Scope: .crx.pmx.
   ========================================================================== */

.crx.pmx{padding-bottom:0}

/* Identity tile: no single casino owns this page, so it carries the gift glyph
   on the same 58px tile the casino marks use, tinted promo-violet. */
.pmx .crx-mark{display:grid;place-items:center;
	background:linear-gradient(150deg,rgba(167,139,250,.22),rgba(123,77,242,.14));
	color:var(--violet-l,#A78BFA)}
.pmx .crx-mark svg{width:28px;height:28px}

/* The facts line runs long here and crash-tracker.css keeps facts nowrap in a
   flex column with no min-width — let the column shrink and wrap on phones. */
.pmx .crx-ident-text{min-width:0}
@media (max-width:560px){
	.pmx .crx-facts{white-space:normal}
	.pmx .crx-facts li{white-space:normal}
}

/* Four tiles, not the system's eight. The scoped rule out-specificises the
   base responsive rules, so the fold has to be re-declared here. */
.pmx .crx-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1080px){.pmx .crx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.pmx .crx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* The published-pool tile echoes the gold the value column uses for that tier. */
.pmx #pmKPrize{color:var(--gold,#F5C451)}

/* --------------------------------------------------------------------------
   Casino strip — health panel and filter in one control.
   -------------------------------------------------------------------------- */

.pmx-casinos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 12px}
.pmx-casino{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;text-align:left;
	background:var(--card-2);border:1px solid var(--hair);color:var(--ink-2);
	transition:border-color .16s,background .16s,transform .16s;min-width:0}
.pmx-casino:hover{border-color:var(--hair-2);transform:translateY(-1px)}
.pmx-casino.is-on{background:var(--surface-3,#293046);
	border-color:color-mix(in srgb,var(--accent,#A78BFA) 45%,transparent)}
.pmx-casino.is-on .pmx-casino-text b{color:#fff}
.pmx-casino-mark{width:34px;height:34px;flex:0 0 auto;display:grid;place-items:center;border-radius:9px;
	overflow:hidden;background:var(--card);border:1px solid var(--hair)}
.pmx-casino-mark img{width:100%;height:100%;object-fit:cover;border-radius:8px}
.pmx-casino-all{color:var(--violet-l,#A78BFA);
	background:linear-gradient(150deg,rgba(167,139,250,.2),rgba(123,77,242,.12))}
.pmx-casino-all svg{width:18px;height:18px}
.pmx-casino-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.pmx-casino-text b{font-size:13.5px;font-weight:700;color:var(--ink);
	white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pmx-casino-sub{font-size:12px;color:var(--ink-4);white-space:nowrap;overflow:hidden;
	text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.pmx-casino-sub.has{color:var(--up,#2ED47F);font-weight:600}
.pmx-casino-sub.none{color:var(--ink-4)}
.pmx-casino-sub.down{color:var(--down-l,#FF7A94)}

@media (max-width:1240px){.pmx-casinos{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:420px){.pmx-casinos{grid-template-columns:1fr}}

/* --------------------------------------------------------------------------
   Controls
   -------------------------------------------------------------------------- */

.pmx-controls{padding:10px 12px;margin-bottom:12px}
.pmx-bar{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap}

.pmx-search{position:relative;flex:1 1 240px;min-width:190px;max-width:380px}
.pmx-search input{width:100%;height:38px;padding:0 40px 0 36px;border-radius:10px;font:inherit;font-size:14px;
	color:var(--ink);background:var(--card-2);border:1px solid var(--hair);outline:none;transition:border-color .16s}
.pmx-search input:focus{border-color:var(--cyan,#4FC7EA)}
.pmx-search input::placeholder{color:var(--ink-4)}
.pmx-search input::-webkit-search-cancel-button{filter:invert(.6)}
.pmx-search-icon{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:16px;height:16px;
	fill:none;stroke:var(--ink-4);stroke-width:2;stroke-linecap:round;pointer-events:none}
.pmx-kbd{position:absolute;right:10px;top:50%;transform:translateY(-50%);font:600 11px/1 var(--font-mono,monospace);
	color:var(--ink-4);padding:3px 6px;border-radius:5px;background:var(--card);border:1px solid var(--hair);pointer-events:none}

/* The category picker is built from what the feed actually contains, so every
   button starts hidden and the JS unhides the ones with rows behind them. */
.pmx-cats{flex-wrap:wrap;max-width:100%}
.pmx-cats button{font-size:12.5px}
.pmx-cats button[hidden]{display:none}

.pmx-toggle{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--ink-2);
	cursor:pointer;user-select:none;white-space:nowrap}
.pmx-toggle input{width:15px;height:15px;accent-color:var(--violet-l,#A78BFA);cursor:pointer}

.pmx-count{margin-left:auto;font-size:13px;color:var(--ink-3);font-variant-numeric:tabular-nums;white-space:nowrap}

/* --------------------------------------------------------------------------
   Table
   -------------------------------------------------------------------------- */

.pmx-board{padding:0;overflow:hidden;margin-bottom:14px}
.pmx-scroll{max-height:none}
.pmx-table{table-layout:auto;min-width:920px}
.pmx-table td,.pmx-table th{padding-left:8px;padding-right:8px}
.pmx-th{padding:0!important}
.pmx-sortbtn{display:flex;align-items:center;gap:5px;width:100%;padding:11px 14px;font:inherit;font-size:12.5px;
	font-weight:600;color:var(--ink-3);text-align:inherit;transition:color .16s}
.pmx-sortbtn:hover{color:#fff}
.pmx-th.r .pmx-sortbtn{justify-content:flex-end}
.pmx-sortbtn i{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;opacity:0;transition:opacity .16s}
.pmx-th[aria-sort="ascending"] .pmx-sortbtn i{opacity:1;border-bottom:5px solid var(--cyan,#4FC7EA)}
.pmx-th[aria-sort="descending"] .pmx-sortbtn i{opacity:1;border-top:5px solid var(--cyan,#4FC7EA)}
.pmx-th[aria-sort="ascending"] .pmx-sortbtn,.pmx-th[aria-sort="descending"] .pmx-sortbtn{color:#fff}
.pmx-th-go{width:1%}

/* A row under 24 hours from its published end gets the thinnest possible
   marker: a hairline of the "down" colour on the left. Rows for promotions
   that have not started yet are dimmed a touch, like the old cards were. */
.pmx-table tr.is-soon td:first-child{box-shadow:inset 3px 0 0 var(--down-l,#FF7A94)}
.pmx-table tr.is-upcoming td{opacity:.82}

/* Promotion cell: thumbnail, then title with its flags, then the one-liner.
   crash-tracker.css sets `.crx-table td{white-space:nowrap}` — a (0,1,1)
   selector — so every wrap override below must be at least as specific. */
.pmx-table td.pmx-pr{max-width:400px;white-space:normal;min-width:240px}
.pmx-pr-in{display:flex;align-items:center;gap:12px;min-width:0}
.pmx-thumb{position:relative;width:64px;height:40px;flex:0 0 auto;border-radius:8px;overflow:hidden;
	border:1px solid var(--hair);
	background:linear-gradient(140deg,color-mix(in srgb,var(--accent,#A78BFA) 32%,transparent),rgba(18,21,31,.92))}
.pmx-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pmx-pr-text{min-width:0}
.pmx-pr-text b{display:block;color:var(--ink);font-weight:700;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
/* One clamped line, NOT nowrap+ellipsis: a nowrap block inside a td feeds its
   full text width into the table's intrinsic sizing (Chrome ignores the
   max-width cap there), and the longest summary then sets the whole table's
   width. Normal whitespace + line-clamp keeps the cell flexible. */
.pmx-pr-sum{display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;
	overflow:hidden;margin-top:2px;font-size:12.5px;color:var(--ink-3);line-height:1.4}
.pmx-flags{display:inline-flex;gap:5px;margin-left:6px;vertical-align:1px}
.pmx-flag{display:inline-block;padding:1px 6px;border-radius:999px;font-size:10.5px;font-weight:700;
	letter-spacing:.03em;text-transform:uppercase;white-space:nowrap}
.pmx-flag.new{background:rgba(46,212,127,.14);color:var(--up,#2ED47F)}
.pmx-flag.soon{background:rgba(255,92,122,.14);color:var(--down-l,#FF7A94)}
.pmx-flag.up{background:rgba(245,196,81,.14);color:var(--gold,#F5C451)}

/* Casino cell */
.pmx-table td.pmx-cs{white-space:nowrap;width:1%}
.pmx-cs-in{display:inline-flex;align-items:center;gap:7px}
.pmx-cs-in img{width:20px;height:20px;border-radius:6px;object-fit:cover;flex:0 0 auto}
.pmx-cs-in b{font-size:13.5px;font-weight:600;color:var(--ink-2)}

/* Category cell */
.pmx-table td.pmx-cat{white-space:nowrap;width:1%}
.pmx-chip{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:600;
	color:var(--ink-3);background:var(--card-2);border:1px solid var(--hair);white-space:nowrap}

/* Value cell — three tiers, each a different colour so the row itself says
   which kind of figure it is carrying. */
.pmx-table td.pmx-val{text-align:right;white-space:nowrap;width:1%;min-width:104px}
.pmx-val b{display:block;font-size:14.5px;font-weight:800;line-height:1.3;font-variant-numeric:tabular-nums}
.pmx-val span{display:block;margin-top:1px;font-size:11.5px;color:var(--ink-4)}
.pmx-val.t-usd b{color:var(--gold,#F5C451)}
.pmx-val.t-badge b{color:var(--ink);font-weight:700}
.pmx-val.t-quote b{color:var(--ink-3);font-weight:600}
.pmx-val.t-quote b::before{content:"\201C";color:var(--ink-4);font-weight:400}
.pmx-val.t-quote b::after{content:"\201D";color:var(--ink-4);font-weight:400}
.pmx-val.t-none b{color:var(--ink-4);font-weight:500}

/* Starts / Ends cells: the date on top, the relative reading under it. */
.pmx-table td.pmx-when{white-space:nowrap;width:1%;min-width:84px}
.pmx-when b{display:block;color:var(--ink-2);font-weight:600;font-size:13.5px;font-variant-numeric:tabular-nums}
.pmx-when span{display:block;font-size:12px;color:var(--ink-4);font-variant-numeric:tabular-nums}
.pmx-when.is-soon b,.pmx-when.is-soon span{color:var(--down-l,#FF7A94)}
.pmx-when.is-open b{color:var(--cyan,#4FC7EA);font-weight:600}
.pmx-when.is-up b{color:var(--gold,#F5C451)}
.pmx-when.is-none b{color:var(--ink-4);font-weight:500}

/* Type cell: the chip, then whether terms exist */
.pmx-table td.pmx-kind{white-space:nowrap;width:1%}
.pmx-kind .pmx-chip.k-camp{color:var(--violet-l,#A78BFA);border-color:rgba(167,139,250,.32);background:rgba(167,139,250,.08)}
.pmx-kind .pmx-chip.k-stand{color:var(--cyan,#4FC7EA);border-color:rgba(79,199,234,.28);background:rgba(79,199,234,.07)}
.pmx-kind span.t{display:block;margin-top:3px;font-size:11.5px;color:var(--ink-4)}
.pmx-kind span.t.has{color:var(--ink-3)}

/* Open button */
.pmx-table td.pmx-go-cell{white-space:nowrap;width:1%;text-align:right}
.pmx .pmx-go{display:inline-flex;align-items:center;gap:4px;padding:6px 12px;border-radius:999px;font-size:12.5px;
	font-weight:700;color:#DDD2FF;background:rgba(167,139,250,.1);border:1px solid rgba(167,139,250,.34);white-space:nowrap;
	transition:background .16s,border-color .16s,color .16s,transform .16s}
.pmx .pmx-go:hover{background:rgba(167,139,250,.2);border-color:rgba(167,139,250,.62);color:#fff;transform:translateY(-1px)}

.pmx-empty{padding:34px 18px}
.pmx-empty b{display:block;font-size:15px;color:var(--ink);font-weight:700;margin-bottom:6px}
.pmx-empty span{display:block;max-width:56ch;margin:0 auto;font-size:13.5px;color:var(--ink-3);line-height:1.6}

/* --------------------------------------------------------------------------
   Info bands + FAQ
   -------------------------------------------------------------------------- */

.pmx-sec{margin-top:26px}
.pmx-how{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.pmx-sources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.pmx-how .crx-hint p,.pmx-sources .crx-hint p{margin:6px 0 0;font-size:13px;color:var(--ink-3);line-height:1.65}
@media (max-width:1240px){.pmx-how,.pmx-sources{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){.pmx-how,.pmx-sources{grid-template-columns:1fr}}

.pmx-faq{display:grid;gap:8px}
.pmx-faq-item{border-radius:12px;background:var(--card-2);border:1px solid var(--hair);overflow:hidden}
.pmx-faq-item summary{list-style:none;cursor:pointer;padding:13px 16px;font-size:14px;font-weight:600;color:var(--ink);
	display:flex;align-items:center;justify-content:space-between;gap:12px}
.pmx-faq-item summary::-webkit-details-marker{display:none}
.pmx-faq-item summary::after{content:"";width:8px;height:8px;flex:0 0 auto;border-right:2px solid var(--ink-4);
	border-bottom:2px solid var(--ink-4);transform:rotate(45deg) translateY(-2px);transition:transform .18s}
.pmx-faq-item[open] summary::after{transform:rotate(-135deg) translateY(-2px)}
.pmx-faq-item p{margin:0;padding:0 16px 14px;font-size:13.5px;line-height:1.7;color:var(--ink-3);max-width:92ch}

/* --------------------------------------------------------------------------
   Below ~1300px the full eight columns measurably no longer fit beside the
   sidebar, so Category, Starts and Type fold there — not at a phone width —
   rather than pushing the Open button into a horizontal scroll. Starts and
   Type come back inside the stacked phone rows.
   -------------------------------------------------------------------------- */

@media (max-width:1300px){
	.pmx-table{min-width:0}
	.pmx-sm{display:none}
	.pmx-table td.pmx-pr{max-width:none;min-width:200px}
}

@media (max-width:900px){
	.pmx-count{margin-left:0;width:100%}
	.pmx-search{max-width:none}
}

/* --------------------------------------------------------------------------
   Phone: each row becomes a stacked block, and the folded columns come back
   inside it. Same pattern as /boosted-odds.
   -------------------------------------------------------------------------- */

@media (max-width:640px){
	.pmx-scroll{overflow:visible}
	.pmx-table,.pmx-table tbody{display:block;min-width:0}
	.pmx-table thead{display:none}
	.pmx-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:4px 12px;align-items:center;
		padding:13px 14px;border-bottom:1px solid var(--hair)}
	.pmx-table tbody tr:last-child{border-bottom:0}
	.pmx-table tr.is-soon td:first-child{box-shadow:none}
	.pmx-table tr.is-soon{box-shadow:inset 3px 0 0 var(--down-l,#FF7A94)}
	.pmx-table td{display:block;padding:0;border:0;width:auto;max-width:none;min-width:0;text-align:left}
	/* The desktop cells carry width:1% at (0,2,1) specificity, which beats the
	   width:auto above and leaves 2px-wide grid items with their content
	   hanging out of the row — so every cell is reset at the same weight. */
	.pmx-table td.pmx-pr,.pmx-table td.pmx-cs,.pmx-table td.pmx-cat,.pmx-table td.pmx-val,
	.pmx-table td.pmx-when,.pmx-table td.pmx-kind,.pmx-table td.pmx-go-cell{
		width:auto;min-width:0;max-width:none}
	.pmx-table td.pmx-pr{grid-row:1;grid-column:1/-1}
	.pmx-thumb{width:56px;height:36px}
	/* casino left, category right, on one line */
	.pmx-table td.pmx-cs{grid-row:2;grid-column:1;margin-bottom:4px}
	.pmx-cs-in b{font-size:12.5px;color:var(--ink-3)}
	.pmx-table td.pmx-cat{display:block;grid-row:2;grid-column:2/-1;justify-self:end;margin-bottom:4px}
	.pmx-table td.pmx-val{grid-row:3;grid-column:1;text-align:left;min-width:0}
	.pmx-val b{display:inline}
	/* The tier label goes — colour and quote marks still carry the tier, and
	   with the label this line ran ~70px past a 390px screen. */
	.pmx-val span{display:none}
	.pmx-table td.pmx-ends{grid-row:3;grid-column:2}
	.pmx-table td.pmx-go-cell{grid-row:3;grid-column:3}
	/* start date and type come back as a final dim line */
	.pmx-table td.pmx-starts{display:block;grid-row:4;grid-column:1/2;margin-top:4px}
	.pmx-when b,.pmx-when span{display:inline;font-size:12px}
	.pmx-when span{margin-left:5px}
	.pmx-table td.pmx-kind{display:block;grid-row:4;grid-column:2/-1;margin-top:4px;text-align:right}
	.pmx-kind span.t{display:inline;margin-left:5px}
	.pmx-table tr.pmx-loading{display:block;padding:0;border:0}
	.pmx-table tr.pmx-loading td{grid-column:1/-1}
}

@media (prefers-reduced-motion:reduce){
	.pmx-casino,.pmx .pmx-go,.pmx-sortbtn{transition:none}
	.pmx-casino:hover,.pmx .pmx-go:hover{transform:none}
}
