/* ============================================================
   Tile art.

   Each game gets its own flat background colour so the floor
   reads as a varied grid at a glance rather than six dark
   rectangles. Art is centred and sized for a 3:4 portrait tile.
   ============================================================ */

.card-art > .art { position: absolute; inset: 0; display: grid; place-items: center; }

.art-plinko { background: linear-gradient(165deg, #1B4E5E, #0C242C); }
.art-slot   { background: linear-gradient(165deg, #4A2A6B, #221033); }
.art-crash  { background: linear-gradient(165deg, #1B3D6B, #0C1E36); }
.art-wheel  { background: linear-gradient(165deg, #16603A, #07301C); }
.art-hilo   { background: linear-gradient(165deg, #6B2436, #310F19); }
.art-mines  { background: linear-gradient(165deg, #2E3670, #131634); }

/* plinko */
.art-plinko .pegs { display: flex; flex-direction: column; gap: 13px; align-items: center; }
.art-plinko .row { display: flex; gap: 13px; }
.art-plinko .peg { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.5); }
.art-plinko .ball {
  position: absolute;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(0,231,1,.8);
  animation: drop 4.2s var(--ease) infinite;
}
@keyframes drop {
  0%   { transform: translate(0, -66px);  opacity: 0; }
  8%   { opacity: 1; }
  26%  { transform: translate(-16px, -34px); }
  44%  { transform: translate(9px, -6px); }
  62%  { transform: translate(-11px, 22px); }
  80%  { transform: translate(16px, 50px); }
  94%  { transform: translate(7px, 70px); opacity: 1; }
  100% { transform: translate(7px, 80px); opacity: 0; }
}

/* slot */
.art-slot .reels { display: flex; gap: 6px; }
.art-slot .reel {
  width: 40px; height: 96px;
  border-radius: 5px;
  background: rgba(0,0,0,.42);
  overflow: hidden;
  position: relative;
}
.art-slot .strip { display: flex; flex-direction: column; animation: roll 2.6s linear infinite; }
.art-slot .reel:nth-child(2) .strip { animation-duration: 3.4s; }
.art-slot .reel:nth-child(3) .strip { animation-duration: 2.1s; }
.art-slot .sym { height: 32px; display: grid; place-items: center; font-size: 15px; color: #fff; }
@keyframes roll { to { transform: translateY(-50%); } }

/* crash */
.art-crash svg { width: 78%; height: auto; }
.art-crash .curve {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: draw 3.2s var(--ease) infinite;
}
.art-crash .fill { fill: url(#cfill); opacity: 0; animation: fadefill 3.2s var(--ease) infinite; }
@keyframes draw {
  0% { stroke-dashoffset: 240; } 62% { stroke-dashoffset: 0; }
  74% { stroke-dashoffset: 0; opacity: 1; } 80% { opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes fadefill {
  0%, 10% { opacity: 0; } 62%, 74% { opacity: .55; } 82%, 100% { opacity: 0; }
}

/* wheel */
.art-wheel .disc {
  width: 108px; height: 108px;
  border-radius: 50%;
  background: conic-gradient(
    #0B3A22 0 18deg, var(--green) 18deg 36deg, #0B3A22 36deg 54deg, var(--blue) 54deg 72deg,
    #0B3A22 72deg 90deg, var(--purple) 90deg 108deg, #0B3A22 108deg 126deg, var(--green) 126deg 144deg,
    var(--gold) 144deg 162deg, #0B3A22 162deg 180deg, var(--green) 180deg 198deg, #0B3A22 198deg 216deg,
    var(--blue) 216deg 234deg, #0B3A22 234deg 252deg, var(--purple) 252deg 270deg, #0B3A22 270deg 288deg,
    var(--green) 288deg 306deg, #0B3A22 306deg 324deg, var(--gold) 324deg 342deg, #0B3A22 342deg 360deg);
  box-shadow: 0 0 0 3px rgba(255,255,255,.14);
  animation: turn 7s cubic-bezier(.28,.72,.24,1) infinite;
}
.art-wheel .pin {
  position: absolute;
  top: calc(50% - 68px);
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 14px solid #fff;
  z-index: 2;
}

/* hi-lo */
.art-hilo { gap: 9px; }
.art-hilo .pair { display: flex; gap: 9px; }
.art-hilo .c {
  width: 48px; height: 66px;
  border-radius: 6px;
  background: #F5F2EA;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 700;
  color: #16181D;
}
.art-hilo .c.red { color: #C3243B; }
.art-hilo .c.turn { animation: turnover 3.4s var(--ease) infinite; }
@keyframes turnover {
  0%, 12% { transform: rotateY(0); } 30%, 46% { transform: rotateY(180deg); }
  64%, 100% { transform: rotateY(0); }
}

/* mines */
.art-mines .g { display: grid; grid-template-columns: repeat(4, 27px); gap: 7px; }
.art-mines .t { width: 27px; height: 27px; border-radius: 5px; background: rgba(255,255,255,.13); }
.art-mines .t.on { animation: pick 4.4s var(--ease) infinite; }
.art-mines .t:nth-child(3).on  { animation-delay: .2s }
.art-mines .t:nth-child(6).on  { animation-delay: .8s }
.art-mines .t:nth-child(9).on  { animation-delay: 1.4s }
.art-mines .t:nth-child(12).on { animation-delay: 2s }
.art-mines .t.boom { animation: pickboom 4.4s var(--ease) infinite; animation-delay: 2.6s }
@keyframes pick {
  0%, 8% { background: rgba(255,255,255,.13); }
  14%, 74% { background: var(--green); }
  86%, 100% { background: rgba(255,255,255,.13); }
}
@keyframes pickboom {
  0%, 8% { background: rgba(255,255,255,.13); }
  14%, 62% { background: var(--red); }
  78%, 100% { background: rgba(255,255,255,.13); }
}

/* ============================================================
   Collapsed rail, favourites, tile polish, focus states.
   ============================================================ */

/* ---------- collapsed rail ---------- */

body.rail-tight { --rail: 68px; }
body.rail-tight .brand .wm,
body.rail-tight .nav-group > span,
body.rail-tight .nav-item span,
body.rail-tight .nav-item .count,
body.rail-tight .railsearch,
body.rail-tight .rail-note,
body.rail-tight .collapse span { display: none; }
body.rail-tight .brand { justify-content: center; padding: 0; }
body.rail-tight .nav-item { justify-content: center; padding: 11px 0; }
body.rail-tight .collapse { justify-content: center; padding: 13px 0; }
body.rail-tight .collapse svg { transform: rotate(180deg); }

/* the rail animates its width, the main column follows */
.rail-nav, .main { transition: width .18s var(--ease), margin-left .18s var(--ease); }

/* ---------- favourite star on a tile ---------- */

.fav {
  position: absolute;
  left: 8px; bottom: 8px;
  z-index: 4;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 33, 46, .72);
  color: var(--muted);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s var(--ease), transform .16s var(--ease),
              color .16s var(--ease), background .16s var(--ease);
}
.card:hover .fav, .fav:focus-visible { opacity: 1; transform: translateY(0); }
.fav:hover { background: var(--panel-3); color: var(--text); }
.fav.on { opacity: 1; transform: translateY(0); color: var(--gold); }
.fav.on svg { fill: var(--gold); }

/* ---------- play affordance on hover ---------- */

.card-art .playpop {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(11, 24, 33, .5);
  opacity: 0;
  transition: opacity .18s var(--ease);
}
.card:hover .card-art .playpop { opacity: 1; }
.card-art .playpop i {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
  transform: scale(.82);
  transition: transform .2s var(--ease);
}
.card:hover .card-art .playpop i { transform: scale(1); }
.card-art .playpop svg { margin-left: 2px; }

/* ---------- focus states, everywhere ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
.card:focus-visible .card-art {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.card:focus-visible { outline: none; }
.card:focus-visible .card-art { outline-offset: 3px; border-radius: var(--r-lg); }

/* ---------- new tile art ---------- */

.art-dice  { background: linear-gradient(165deg, #1F4C3A, #0B2A1F); }
.art-limbo { background: linear-gradient(165deg, #45306E, #1B1233); }
.art-keno  { background: linear-gradient(165deg, #1D4468, #0B1F32); }

/* dice: the win / lose track with a marker sliding along it */
.art-dice .dtrack {
  position: relative;
  width: 76%;
  height: 10px;
  border-radius: 100px;
  background: var(--red);
  overflow: visible;
}
.art-dice .dtrack .dwin {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 52%;
  border-radius: 0 100px 100px 0;
  background: var(--green);
}
.art-dice .dtrack .dmark {
  position: absolute;
  top: -7px;
  width: 8px; height: 24px;
  margin-left: -4px;
  border-radius: 3px;
  background: #fff;
  animation: dslide 3.6s var(--ease) infinite;
}
@keyframes dslide {
  0%, 8%   { left: 20%; }
  46%, 58% { left: 74%; }
  92%, 100%{ left: 33%; }
}

/* limbo: a multiplier climbing */
.art-limbo .lval {
  font-size: 30px;
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  animation: lclimb 3.4s var(--ease) infinite;
}
@keyframes lclimb {
  0%, 6%   { opacity: .25; transform: translateY(8px) scale(.9); }
  40%, 74% { opacity: 1; transform: translateY(0) scale(1); }
  94%, 100%{ opacity: .25; transform: translateY(8px) scale(.9); }
}

/* keno: a small grid with numbers coming up */
.art-keno .kg { display: grid; grid-template-columns: repeat(5, 22px); gap: 5px; }
.art-keno .kc {
  width: 22px; height: 22px;
  border-radius: 4px;
  background: rgba(255,255,255,.13);
}
.art-keno .kc.on { animation: kdraw 4s var(--ease) infinite; }
.art-keno .kc:nth-child(2).on  { animation-delay: .25s }
.art-keno .kc:nth-child(7).on  { animation-delay: .7s }
.art-keno .kc:nth-child(11).on { animation-delay: 1.15s }
.art-keno .kc:nth-child(14).on { animation-delay: 1.6s }
.art-keno .kc:nth-child(18).on { animation-delay: 2.05s }
@keyframes kdraw {
  0%, 6%   { background: rgba(255,255,255,.13); }
  12%, 72% { background: var(--green); }
  84%, 100%{ background: rgba(255,255,255,.13); }
}

/* ---------- empty state when a filter or search finds nothing ---------- */

.nomatch {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 30px 20px;
  border-radius: var(--r);
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.nomatch b { color: var(--text); font-size: 15px; }

/* ---------- art for the later four ---------- */

.art-tower    { background: linear-gradient(165deg, #57351C, #241408); }
.art-flip     { background: linear-gradient(165deg, #6B5410, #2E2205); }
.art-diamonds { background: linear-gradient(165deg, #123F53, #061E2B); }
.art-roulette { background: linear-gradient(165deg, #5A1420, #260810); }

/* tower: rows of tiles with a safe path lit */
.art-tower .tw { display: flex; flex-direction: column-reverse; gap: 6px; }
.art-tower .twr { display: flex; gap: 6px; }
.art-tower .twt {
  width: 22px; height: 16px;
  border-radius: 3px;
  background: rgba(255,255,255,.13);
}
.art-tower .twt.up  { background: var(--green); animation: twpulse 3.6s var(--ease) infinite; }
.art-tower .twt.bad { background: var(--red); }
@keyframes twpulse { 0%,70%{opacity:1} 82%{opacity:.35} 100%{opacity:1} }

/* flip: a coin turning over */
.art-flip .fc {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--gold);
  color: #241902;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 700;
  animation: fspin 3.4s var(--ease) infinite;
}
@keyframes fspin {
  0%, 20%   { transform: rotateY(0); }
  50%, 70%  { transform: rotateY(540deg); }
  100%      { transform: rotateY(1080deg); }
}

/* diamonds: a row of gems, some pulsing */
.art-diamonds .dg { display: grid; grid-template-columns: repeat(4, 20px); gap: 7px; justify-content: center; }
.art-diamonds .dgm {
  width: 20px; height: 20px;
  background: var(--c);
  clip-path: polygon(50% 0%, 100% 34%, 50% 100%, 0% 34%);
}
.art-diamonds .dgm.pulse { animation: dpulse 3s var(--ease) infinite; }
@keyframes dpulse { 0%,60%{transform:scale(1)} 75%{transform:scale(1.22)} 100%{transform:scale(1)} }

/* roulette: a strip of recent pockets */
.art-roulette .rp { display: grid; grid-template-columns: repeat(3, 34px); gap: 6px; }
.art-roulette .rn {
  height: 26px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  color: #fff;
}
.art-roulette .rn.red   { background: #C1272D; }
.art-roulette .rn.black { background: #14202B; }
.art-roulette .rn.green { background: #12805A; animation: rpulse 3.2s var(--ease) infinite; }
@keyframes rpulse { 0%,70%{opacity:1} 84%{opacity:.4} 100%{opacity:1} }

/* ============================================================
   Site footer
   ============================================================ */

.sitefoot {
  margin-top: auto;
  padding: 44px var(--gutter) 0;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 34px;
  width: 100%;
  max-width: calc(var(--content-max) - var(--gutter) * 2);
  padding-bottom: 36px;
}

.foot-brand .brand {
  height: auto;
  padding: 0;
  border: 0;
  margin-bottom: 14px;
}
.foot-brand p {
  margin: 0;
  max-width: 40ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.foot-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 3px;
}
.foot-col p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

.foot-link {
  padding: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-align: left;
  transition: color .14s var(--ease);
}
.foot-link:hover { color: var(--green); }

.foot-base {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: calc(var(--content-max) - var(--gutter) * 2);
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
}
.foot-base p { margin: 0; flex: 1; min-width: 260px; font-size: 12px; line-height: 1.6; color: var(--faint); }
.foot-base b { color: var(--muted); font-weight: 600; }
.foot-base > span {
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--panel-2);
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
}

/* ============================================================
   Collapsed rail and the mobile drawer
   ============================================================ */

body.rail-tight { --rail: 72px; }
body.rail-tight .brand .wm,
body.rail-tight .nav-head,
body.rail-tight .nav-item > span,
body.rail-tight .nav-item .count,
body.rail-tight .railsearch,
body.rail-tight .rail-note,
body.rail-tight .collapse span { display: none; }
body.rail-tight .brand { justify-content: center; padding: 0; }
body.rail-tight .nav-item { justify-content: center; padding: 0; gap: 0; }
body.rail-tight .nav-item.on::before { left: -12px; }
body.rail-tight .collapse { justify-content: center; padding: 0; }
body.rail-tight .collapse svg { transform: rotate(180deg); }

.rail-nav, .main { transition: width .18s var(--ease), margin-left .18s var(--ease); }

@media (max-width: 900px) {
  .rail-nav {
    transform: translateX(-100%);
    transition: transform .22s var(--ease);
    width: 268px;
    box-shadow: 0 0 40px rgba(0,0,0,.5);
  }
  body.rail-open .rail-nav { transform: translateX(0); }
  body.rail-tight .rail-nav { width: 268px; }
  body.rail-tight { --rail: 0px; }
  .main { margin-left: 0; }
  .railtoggle { display: flex; }
  .collapse { display: none; }
  /* the drawer always shows full labels, even when desktop is collapsed */
  body.rail-tight .brand .wm,
  body.rail-tight .nav-head,
  body.rail-tight .nav-item > span,
  body.rail-tight .nav-item .count,
  body.rail-tight .railsearch,
  body.rail-tight .rail-note { display: revert; }
  body.rail-tight .nav-item { justify-content: flex-start; padding: 0 10px; gap: 12px; }
  body.rail-tight .brand { justify-content: flex-start; padding: 0 18px; }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  :root { --gutter: 16px; }
  .content { padding: 18px var(--gutter) 36px; }
}

@media (max-width: 560px) {
  .wallet-label, .wallet-act span { display: none; }
  .crumb span { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}
