/* list pages — arcade, live, rewards — in the "Daylight" language. Loaded with "css: pages". */
.pg { padding-top: 56px; }
.pg .sec-head .eyebrow + h1 { margin-top: 18px; }
.pg .sec-head p, .pg .sec-head h1 { text-wrap: balance; }
.small { font-size: 13px; }

/* ================= arcade ================= */
.filters { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; }
.search { position: relative; flex: 0 1 380px; min-width: 0; }
.search svg { position: absolute; left: 17px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .inp { height: 46px; border-radius: 999px; padding: 0 18px 0 44px; font-size: 15px; }
.search .inp::-webkit-search-cancel-button { cursor: pointer; }
.cabf { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.cabf button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule2); background: transparent; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--ink2); white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.cabf button svg { width: 14px; height: 14px; flex: none; color: var(--muted); transition: color .2s; }
.cabf button:hover { border-color: var(--ink); color: var(--ink); }
.cabf button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cabf button.on svg { color: #fff; }
.arc-grid { margin-top: 32px; }
.more-row { margin-top: 40px; display: flex; justify-content: center; }
.more-row .btn { min-width: 180px; }
/* the 24h value is <b><span class="up|down"> — keep it full size and coloured, not label-styled */
.card .r2 b > span { display: inline; font-size: inherit; }
.card .r2 b > .up { color: var(--up); }
.card .r2 b > .down { color: var(--down); }

/* ================= live ================= */
.live-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.feed { grid-column: 1 / 9; display: grid; min-width: 0; padding: 4px 26px; background: var(--card); border-radius: var(--r); box-shadow: 0 1px 0 rgba(20, 18, 16, .03), 0 1px 2px rgba(20, 18, 16, .05); }
.live-side { grid-column: 9 / -1; display: grid; gap: 24px; min-width: 0; }
@media (min-height: 860px) and (min-width: 961px) { .live-side { position: sticky; top: 112px; } }

.feed .ev { display: grid; grid-template-columns: 40px 60px minmax(0, 1fr) auto; grid-template-areas: "img k t time"; align-items: center; column-gap: 16px;
  min-height: 72px; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.4; color: var(--ink2); }
.feed .ev:first-child { border-top: 0; }
.feed .ev > img, .feed .ev > .noimg { grid-area: img; display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg2); box-shadow: 0 0 0 1px var(--rule); }
.feed .ev .k { grid-area: k; font: 500 12.5px/1 var(--mono); letter-spacing: -.01em; color: var(--muted); text-transform: lowercase; }
.feed .ev .k::first-letter { text-transform: uppercase; }
.feed .ev-record .k { color: var(--accent-ink); }
.feed .ev > span:not(.k) { grid-area: t; min-width: 0; overflow-wrap: anywhere; }
.feed .ev b { color: var(--ink); font-weight: 600; }
.feed .ev a b { font: 500 14.5px/1 var(--mono); letter-spacing: -.01em; border-bottom: 1px solid var(--rule2); transition: border-color .2s; }
.feed .ev a:hover b { border-color: var(--ink); }
.feed .ev time { grid-area: time; font: 400 13px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.feed .ev-payout::before { content: "◎"; grid-area: img; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 16px; }
.feed .ev-payout > .noimg { display: none; }
.feed .ev-payout .k { color: var(--up); }
.feed .empty { padding: 72px 24px; border: 0; }
.feed .skel { height: 44px; margin: 14px 0; border-radius: 12px; background-image: linear-gradient(90deg, var(--bg), #faf7f1, var(--bg)); }

.side-now .ph, .side-new .ph { margin-bottom: 18px; }
.ph .link.small { font-weight: 500; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.kv > div { border-top: 1px solid var(--rule); padding-top: 14px; min-width: 0; }
.kv b { display: block; font: 500 32px/1 var(--mono); letter-spacing: -.045em; color: var(--ink); white-space: nowrap; }
.kv b small { font-size: 15px; letter-spacing: -.01em; color: var(--muted); }
.kv span { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.kv .dot { width: 6px; height: 6px; box-shadow: none; }
.kv .wide { grid-column: 1 / -1; }

.mini { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); }
.mini:first-child { border-top: 0; padding-top: 2px; }
.mini:last-child { padding-bottom: 0; }
.mini img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg2); box-shadow: 0 0 0 1px var(--rule); }
.mini b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.mini span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini span i { font-style: normal; font-family: var(--mono); color: var(--ink2); }
.mini .t { min-width: 0; }
.mini .r { text-align: right; }
.mini .r b { font: 500 14px/1.3 var(--mono); letter-spacing: -.02em; }
.mini:hover .t b { color: var(--accent-ink); }

/* ================= rewards ================= */
.rw-clock { text-align: right; }
.rw-clock .timer { font-size: clamp(44px, 5.2vw, 76px); line-height: .9; letter-spacing: -.055em; }
.rw-clock span { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }

.rw-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.rw-game { grid-column: 1 / 8; display: grid; grid-template-columns: minmax(0, 1fr) 248px; grid-template-rows: auto 1fr auto; grid-template-areas: "gi slab" "st slab" "go slab"; column-gap: 40px; padding: 30px; }
.rw-game.none { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; grid-template-areas: "gi" "go"; }
.rw-game .gi { grid-area: gi; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.rw-game .k { font-size: 13px; font-weight: 500; color: var(--ink); }
.rw-game .gh { display: flex; align-items: center; gap: 18px; min-width: 0; }
.rw-game .gh img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: var(--bg2); box-shadow: 0 0 0 1px var(--rule); }
.rw-game .gh > div { min-width: 0; }
.rw-game h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: .95; letter-spacing: -.05em; overflow-wrap: anywhere; }
.rw-game .sym { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--muted); }
.rw-game .sym i { font: 500 15px/1 var(--mono); font-style: normal; color: var(--ink2); }
.rw-game .chip { height: 28px; }
.rw-game .pot { margin: 0; font-size: 16px; color: var(--muted); max-width: 40ch; }
.rw-game .pot b { color: var(--ink); font: 500 16px/1 var(--mono); }
.rw-game .go { grid-area: go; padding-top: 24px; }
.rw-game .st { grid-area: st; align-self: end; margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 16px; border-top: 1px solid var(--rule); max-width: 420px; }
.rw-game .st > div > span { display: block; font-size: 13px; color: var(--muted); }
.rw-game .st b { display: block; margin-top: 4px; font: 500 20px/1.2 var(--mono); letter-spacing: -.03em; }
.rw-slab { grid-area: slab; align-self: center; display: block; padding: 7px; border-radius: 34px; background: var(--slab); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 2px 3px rgba(40, 24, 8, .12), 14px 30px 40px -18px rgba(70, 42, 14, .38); transition: transform .5s var(--ease); }
.rw-slab:hover { transform: translateY(-6px) rotate(-1deg); }
.rw-slab .scr { position: relative; aspect-ratio: 9 / 16; border-radius: 27px; overflow: hidden; background: #000; isolation: isolate; }
.rw-slab .poster { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, var(--c1, #ff4a1c) 0, transparent 62%), var(--c0, var(--slab)); }
.rw-slab .poster img { width: 42%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 12px 30px -8px rgba(0, 0, 0, .6); }
.rw-slab .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; z-index: 1; }
.rw-slab .shot.ok { opacity: 1; }

.rw-board { grid-column: 8 / -1; display: flex; flex-direction: column; padding: 30px; }
.rw-board .board .r { padding-block: 10px; }
.rw-board .board .seat { color: var(--faint); }
.rw-board .board .seat .s { color: var(--muted); font-size: 14px; }
.rw-board .board .seat:first-child span:nth-child(2) { color: var(--ink2); }
.me { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.rw-board .board { flex: 1; }
.me b { color: var(--ink); font-weight: 500; }

/* rules + payouts: heading left, content right, like the home "How it works" */
.rw-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.rw-split > :first-child { grid-column: 1 / 5; }
.rw-split > :last-child { grid-column: 5 / -1; }
.rw-split .h2 { font-size: clamp(40px, 4.2vw, 60px); }
.rw-sub { margin: 14px 0 0; color: var(--muted); font-size: 16px; max-width: 24ch; }
.rw-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; }
.rule { border-top: 1px solid var(--ink); padding-top: 18px; min-width: 0; }
.rule .n { font: 400 14px/1 var(--mono); color: var(--muted); }
.rule h3 { margin-top: 22px; font-size: 28px; line-height: 1.1; letter-spacing: -.035em; font-weight: 650; }
.rule p { margin: 10px 0 0; font-size: 15.5px; color: var(--muted); }
.rw-pay { padding: 12px 24px; overflow-x: auto; }
.rw-pay .tbl tr:last-child td { border-bottom: 0; }
.rw-pay .tbl td.m { font-size: 14px; }
.rw-none { margin: 0; padding: 14px 0; color: var(--muted); font-size: 15px; }

/* ================= responsive ================= */
@media (max-width: 1180px) {
  .filters { flex-direction: column; align-items: stretch; }
  .search { flex: none; max-width: 420px; }
  .cabf { justify-content: flex-start; }
  .rw-game { grid-template-columns: minmax(0, 1fr) 200px; column-gap: 28px; }
}
@media (max-width: 1280px) {
  .rw-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .rw-game .gh { flex-direction: column; align-items: flex-start; gap: 14px; }
  .rw-game .gh img { width: 56px; height: 56px; }
}
@media (max-width: 960px) {
  .live-grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .feed { grid-column: 1; order: 2; }
  .live-side { display: contents; }
  .kv { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .kv .wide { grid-column: auto; }
  .side-now { order: 1; }
  .side-new { order: 3; }
  .rw-game, .rw-board { grid-column: 1 / -1; }
  .rw-split { display: block; }
  .rw-split > :last-child { margin-top: 28px; }
}
@media (max-width: 760px) {
  .pg .sec-head > :last-child:not(:first-child) { justify-self: start; }
  .rw-clock { text-align: left; }
}
@media (max-width: 640px) {
  .pg { padding-top: 32px; }
  .search { max-width: none; }
  .filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cabf { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cabf::-webkit-scrollbar { display: none; }
  .cabf button { flex: none; }
  .arc-grid { margin-top: 20px; }
  .more-row .btn { width: 100%; }

  .feed { padding: 2px 18px; border-radius: 20px; }
  .feed .ev { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "img k time" "img t t"; row-gap: 6px; column-gap: 12px; padding: 14px 0; font-size: 14.5px; }
  .feed .ev > img, .feed .ev > .noimg, .feed .ev-payout::before { width: 36px; height: 36px; align-self: start; margin-top: 2px; }
  .feed .ev .k { align-self: end; }
  .feed .ev time { font-size: 12px; align-self: end; }
  .kv { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; }
  .kv .wide { grid-column: span 2; }
  .kv b { font-size: 26px; }
  .kv b small { font-size: 13px; }

  .rw-clock .timer { font-size: 52px; }
  .rw-game { grid-template-columns: minmax(0, 1fr) 112px; grid-template-rows: auto; grid-template-areas: "gi slab" "st st" "go go"; column-gap: 18px; padding: 20px; }
  .rw-game .st { margin-top: 20px; max-width: none; }
  .rw-game .st b { font-size: 18px; }
  .rw-game.none { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gi" "go"; }
  .rw-game .gi { gap: 18px; }
  .rw-game .gh { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rw-game .gh img { width: 48px; height: 48px; }
  .rw-game h2 { font-size: 34px; }
  .rw-game .pot { font-size: 15px; }
  .rw-game .go { padding-top: 20px; }
  .rw-game .go .btn { width: 100%; }
  .rw-slab { padding: 5px; border-radius: 22px; }
  .rw-slab .scr { border-radius: 17px; }
  .rw-board { padding: 20px; }
  .rw-rules { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .rule { display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 16px 0 22px; }
  .rule .n { padding-top: 8px; }
  .rule h3 { margin-top: 0; font-size: 26px; }
  .rule p { grid-column: 2; margin-top: 6px; }
  .rw-pay { padding: 8px 16px; }
  .tbl .hide-s { display: none; }
  .rw-pay .tbl { font-size: 13px; }
  .rw-pay .tbl td.m { font-size: 13px; }
  .rw-pay .tbl th, .rw-pay .tbl td { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) { .rw-slab { transition: none; } .rw-slab:hover { transform: none; } }
