/* Tilt neon home — the game cards, laid out like the original playtilt.gg Originals (art with a live figure, name and
   RTP chip, pitch, a stats strip, the last results, a Play pill), lit as neon: each card's edge, dot, figure and
   glow burn in its game's tube colour (--neon from sections.css / racing.css). */
.games .games-grid.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;perspective:1400px}
.games .games-grid.cards > li.wide{grid-column:span 2}
.games .games-grid.cards > li[hidden]{display:none}
@media (max-width:1180px){.games .games-grid.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.games .games-grid.cards > li.wide{grid-column:1/-1}}
@media (max-width:640px){.games .games-grid.cards{grid-template-columns:1fr}.games .games-grid.cards > li.wide{grid-column:auto}}
.games .games-grid.cards > li{display:flex}

.games .gcard{--acc:var(--neon);position:relative;display:flex;flex-direction:column;width:100%;padding:0;gap:0;min-height:0;height:auto;aspect-ratio:auto;
  grid-template-areas:none;background:var(--glass,#0b0b0f);border:1px solid rgba(var(--neon-rgb),.45);border-radius:24px;overflow:hidden;
  color:var(--text);box-shadow:0 0 0 1px rgba(var(--neon-rgb),.06) inset,0 0 14px -6px rgba(var(--neon-rgb),.28),0 24px 60px -24px rgba(0,0,0,.8)}   /* at rest: the colour is the edge and the tube; the glow wakes on hover and focus */
.games .gcard:hover,.games .gcard:focus-within{border-color:rgba(var(--neon-rgb),.95);
  box-shadow:0 0 0 1px rgba(var(--neon-rgb),.35) inset,0 0 26px rgba(var(--neon-rgb),.45),0 0 80px -10px rgba(var(--neon-rgb),.6),0 30px 70px -24px rgba(0,0,0,.85)}
/* the neon tube along the top edge */
.games .gcard::after{content:"";position:absolute;left:18px;right:18px;top:0;height:2px;border-radius:2px;background:var(--neon);
  box-shadow:0 0 8px rgba(var(--neon-rgb),.55);opacity:.8;pointer-events:none;z-index:3;transition:box-shadow .3s}
.games .gcard:hover::after,.games .gcard:focus-within::after{box-shadow:0 0 10px var(--neon),0 0 24px rgba(var(--neon-rgb),.7);opacity:.95}

/* art */
.games .gcard .art{position:relative;height:280px;overflow:hidden;
  background:radial-gradient(85% 75% at 50% 100%,rgba(var(--neon-rgb),.38),transparent 70%),var(--stage)}
.games .gcard .gridbg{position:absolute;inset:0;background-image:linear-gradient(rgba(178,107,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(178,107,255,.05) 1px,transparent 1px);background-size:28px 28px}
.games .gcard .corner{position:absolute;top:16px;left:18px;right:16px;display:flex;justify-content:space-between;align-items:center;z-index:2}
.games .gcard .orig{font:500 12px/1 var(--font-display);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.games .gcard .orig b{color:var(--neon-text);font-weight:700}
.games .gcard .ph-live{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;font:600 10px/1 var(--font-display);letter-spacing:.1em;text-transform:uppercase;
  color:#b9ffb9;background:rgba(19,236,19,.08);border:1px solid rgba(19,236,19,.45)}
.games .gcard .ph-live::before{display:none!important}
.games .gcard .fadeout{position:absolute;left:0;right:0;bottom:0;height:90px;background:linear-gradient(180deg,transparent,rgba(10,10,13,.96));z-index:1}
.games .gcard .livefig{position:absolute;left:20px;bottom:16px;display:flex;flex-direction:column;gap:4px;z-index:2}
.games .gcard .livefig .l{font:500 12px/1 var(--font-display);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.games .gcard .livefig .v{font:600 40px/1 var(--font-mono);letter-spacing:-1px;color:var(--neon-text);text-shadow:0 0 1px var(--neon),0 0 14px rgba(var(--neon-rgb),.35)}

/* the art per game (decorative): reset the cabinet styles of .game-art from sections.css */
.games .gcard .game-art{position:absolute;inset:0;width:auto;height:auto;margin:0;padding:0;border-radius:0;background:none;box-shadow:none;overflow:visible;display:block}
.games .gcard:hover .game-art{background:none}
.games .gcard .game-art img{position:absolute;max-width:none;max-height:none;min-width:0;animation:none;filter:drop-shadow(0 18px 24px rgba(0,0,0,.6)) drop-shadow(0 0 14px rgba(var(--neon-rgb),.25))}
/* Crash: a lit curve with a ball riding it, and the rocket at its top */
.games .gcard .crash-art{position:absolute;inset:0;width:100%;height:100%;-webkit-mask-image:linear-gradient(to top,transparent 15%,#000 42%);mask-image:linear-gradient(to top,transparent 15%,#000 42%)}
.games .gcard .crash-art .drift circle{fill:#fff;opacity:.5}
.games .gcard .crash-art .guide{stroke:var(--neon);stroke-opacity:.12;stroke-dasharray:4 6}
.games .gcard .crash-art .draw{fill:none;stroke:var(--neon);stroke-width:3.5;stroke-linecap:round;filter:drop-shadow(0 0 8px var(--neon));
  stroke-dasharray:420;stroke-dashoffset:420;animation:gc-draw 4s linear infinite}
.games .gcard .crash-art .tip{fill:#fff;filter:drop-shadow(0 0 10px var(--neon))}
.games .gcard .crash-art .drift{animation:gc-drift 12s linear infinite}
.games .gcard .crash-rocket img{width:84px;height:84px;right:12%;top:12%;transform:rotate(28deg)}
@keyframes gc-draw{to{stroke-dashoffset:0}}
@keyframes gc-drift{to{transform:translateX(-40px)}}
/* Dice: the two blobs standing on the line */
.games .gcard .dice-blobs img{width:min(40%,150px);height:auto;top:22%;animation:gc-bob 3.4s ease-in-out infinite;transform-origin:50% 92%}
.games .gcard .dice-blobs img:first-child{left:14%}
.games .gcard .dice-blobs img:last-child{right:14%;animation-delay:-1.7s}
@keyframes gc-bob{50%{transform:translateY(-6px) scaleY(1.02)}}
/* Blob Flip: the struck coin, turning */
.games .gcard .flip-coin img{width:min(54%,170px);height:auto;left:50%;top:10%;translate:-50% 0;animation:gc-coin 5s ease-in-out infinite}
@keyframes gc-coin{0%,40%{transform:rotateY(0)}50%,90%{transform:rotateY(360deg)}100%{transform:rotateY(360deg)}}
/* Blackout: the 7×7 grid of lights (filled by gcards.js) */
.games .gcard .bo-grid-art{position:absolute;left:50%;top:40px;translate:-50% 0;display:grid;grid-template-columns:repeat(7,17px);grid-auto-rows:17px;gap:5px;padding:10px;
  border-radius:16px;background:rgba(2,3,26,.7);border:1px solid rgba(var(--neon-rgb),.35);box-shadow:0 0 24px rgba(var(--neon-rgb),.2)}
.games .gcard .bo-grid-art span{border-radius:5px;background:#ffd04f;box-shadow:0 0 10px rgba(255,208,79,.5);transition:background .25s,box-shadow .25s}
.games .gcard .bo-grid-art span.off{background:var(--panel);box-shadow:inset 0 0 0 1px var(--line)}
.games .gcard .bo-grid-art span.short{background:var(--red);box-shadow:0 0 16px rgba(255,84,112,.9)}
.games .gcard .bo-grid-art span.dim{background:var(--panel-hover);box-shadow:none}
/* Hold'em: a six-seat table drawn in CSS, with real faces from the deck */
.games .gcard .tbl{position:absolute;left:50%;top:56px;bottom:78px;margin:auto 0;width:min(560px,86%);max-height:190px;transform:translateX(-50%)} /* sits in the band between the corner tag and the Rake figure, so neither overlaps the table */
.games .gcard .tbl .rail{position:absolute;inset:0;border-radius:999px;background:linear-gradient(180deg,#151a44,#05071c);
  box-shadow:0 0 0 2px rgba(var(--neon-rgb),.85),0 0 22px rgba(var(--neon-rgb),.55),0 24px 56px rgba(0,0,0,.6)}
.games .gcard .tbl .felt{position:absolute;inset:12px 13px;border-radius:999px;background:radial-gradient(ellipse 70% 80% at 50% 38%,#16605b,#0f413f 55%,#082827);box-shadow:inset 0 12px 34px rgba(0,0,0,.45)}
.games .gcard .tbl .bd{position:absolute;inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;gap:6px}
.games .gcard .tbl .bd img{position:static;display:block;width:clamp(32px,4.4vw,48px);height:auto;aspect-ratio:5/7;border-radius:3px;filter:none;box-shadow:0 6px 14px rgba(0,0,0,.45)}
.games .gcard .tbl .st{position:absolute;width:12px;height:12px;border-radius:50%;transform:translate(-50%,-50%);background:#1a2050;border:1px solid #2c3580}
.games .gcard .tbl .st.on{background:var(--neon);border-color:#fff;box-shadow:0 0 10px var(--neon)}
.games .gcard .stakes{position:absolute;right:18px;bottom:18px;z-index:2;display:flex;gap:6px}
.games .gcard .stakes span{font:500 11px/1 var(--font-mono);color:var(--muted);padding:5px 9px;border-radius:999px;border:1px solid rgba(var(--neon-rgb),.35);background:rgba(2,3,26,.75)}
@media (max-width:640px){.games .gcard .stakes{display:none}}

/* name, chip, pitch */
.games .gcard .info{padding:20px 22px 0;flex:1 0 auto;display:block}
.games .gcard .name-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.games .gcard h3{margin:0;display:flex;align-items:center;gap:10px;font:700 18px/1.1 var(--font-display);text-transform:uppercase;letter-spacing:.02em;color:#fff}
.games .gcard h3 i{display:none!important}
.games .gcard .ph-chip{flex:none;padding:5px 10px;border-radius:999px;font:500 10px/1 var(--font-mono);letter-spacing:.04em;color:var(--neon-text);border:1px solid rgba(var(--neon-rgb),.5);background:rgba(var(--neon-rgb),.08)}
.games .gcard .pitch{margin:10px 0 0;font:400 14px/22px var(--font-sans);color:var(--muted)}
/* stats strip */
.games .gcard .stats{margin:16px 22px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid rgba(var(--neon-rgb),.22);border-radius:16px;background:rgba(0,0,0,.35)}
.games .gcard .stats div{display:flex;flex-direction:column;gap:5px;padding:12px 12px;min-width:0}
.games .gcard .stats div + div{border-left:1px solid rgba(178,107,255,.1)}
.games .gcard .stats .l{font:500 12px/1 var(--font-display);letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.games .gcard .stats .v{font:500 14px/1.1 var(--font-mono);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.games .gcard .stats .v.stat-big{color:var(--neon-text)}
/* last results (fresh sealed seeds, computed in the browser) */
.games .gcard .last{margin:14px 22px 0;display:flex;gap:6px;align-items:center;overflow:hidden;min-height:24px;
  -webkit-mask-image:linear-gradient(90deg,#000 82%,transparent);mask-image:linear-gradient(90deg,#000 82%,transparent);font:500 12px/1 var(--font-display);letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.games .gcard .last > span{flex:none;white-space:nowrap}
.games .gcard .last .q{font:500 13px/1.2 var(--font-sans);letter-spacing:0;text-transform:none}
.games .gcard .last .r{font:500 12px/1 var(--font-mono);letter-spacing:0;padding:4px 8px;border-radius:999px;border:1px solid rgba(178,107,255,.3);color:var(--cyan-text)}
.games .gcard .last .r.hi{border-color:rgba(19,236,19,.45);color:#b9ffb9}
.games .gcard .last .r.lo{border-color:rgba(255,84,112,.45);color:#ffb0bd}
/* the Play pill (the whole card is its link) */
.games .gcard .btn-play.play{position:static;margin:18px 22px 22px;width:auto;min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;
  border-radius:999px;border:1px solid rgba(var(--neon-rgb),.5);background:transparent;color:#fff;box-shadow:none;animation:none;
  font:600 12px/1 var(--font-display);letter-spacing:.06em;text-transform:uppercase;opacity:1;transform:none}
.games .gcard:hover .btn-play.play,.games .gcard:focus-within .btn-play.play{background:var(--neon);color:#06071a;border-color:transparent;box-shadow:0 0 22px rgba(var(--neon-rgb),.7)}
.games .gcard .btn-play.play .play-name{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:pre}
.games .gcard .arrow{display:inline-block;transition:transform .25s}
.games .gcard:hover .arrow{transform:translateX(4px)}
@media (max-width:640px){.games .gcard .art{height:230px}.games .gcard .livefig .v{font-size:34px}}
@media (prefers-reduced-motion:reduce){
  .games .gcard,.games .gcard::after{transition:none}
  .games .gcard .crash-art .draw{animation:none;stroke-dashoffset:0}
  .games .gcard .crash-art .drift,.games .gcard .game-art img,.games .gcard .ph-live::before{animation:none}
}

/* each card sizes to its own content (nothing stretches it), and hover is a calm lift: no 3D tilt or light sweep */
.games .games-grid.cards{align-items:start}
.games .games-grid.cards > li{align-self:start}
.games .gcard .info{flex:0 0 auto}
.games .gcard,.games .gcard:hover,.games .gcard:focus-within{transform:none!important}
.games .gcard::before{display:none!important}
.games .gcard{transition:translate .3s var(--ease-out),box-shadow .3s,border-color .3s}
.games .gcard:hover,.games .gcard:focus-within{translate:0 -4px}
@media (prefers-reduced-motion:reduce){.games .gcard:hover,.games .gcard:focus-within{translate:none}}

/* cards in a row share one height: the bottom block (stats, last, Play) sits on the same line in every card */
.games .games-grid.cards{align-items:stretch}
.games .games-grid.cards > li{align-self:stretch}
.games .gcard{height:100%}
.games .gcard .stats{margin-top:auto}
.games .gcard .info{padding-bottom:16px}
/* the Play pill: one space between the words, no underline */
.games .gcard .btn-play.play{gap:0;text-decoration:none}
.games .gcard .btn-play.play *{text-decoration:none}
.games .gcard .btn-play.play .arrow{margin-left:10px}
/* every row the same height too, so all five cards share one size and one baseline */
.games .games-grid.cards{grid-auto-rows:1fr}
