/* The Play button shows only after the pointer rested on the tile for a second (class hg-ready, scripts/game-play.js); before that a click goes to the game page. */
/* Game tiles: hovering a tile dims the picture a little and a round green Play button pops up in its middle (a soft ring pulses around it).
   The text under the picture is never covered. Not used on touch screens or on phone-sized windows.
   Only the mouse pointer (or keyboard focus from the keyboard) shows it - a click that leaves focus on the tile must not keep it open. */
.hg-thumb { position: relative; }
.hg-play { position: absolute; inset: 0; z-index: 3; display: block; background: radial-gradient(circle at 50% 50%, rgba(6, 10, 16, .28), rgba(6, 10, 16, .6)); color: #04281b; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s ease; -webkit-tap-highlight-color: transparent; }
.hg-play::before, .hg-play::after { content: ''; position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; }
.hg-play::before { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 12px 30px -8px rgba(16, 185, 129, .8), inset 0 1px 0 rgba(255, 255, 255, .4); opacity: 0; transform: scale(.5); transition: transform .38s cubic-bezier(.2, 1.5, .4, 1), opacity .18s ease; }
.hg-play::after { border: 2px solid rgba(52, 211, 153, .75); box-sizing: border-box; opacity: 0; }
/* the arrow: its box is centred on the circle and the triangle is nudged left, so the triangle itself (not its box) sits in the middle */
.hg-play svg { position: absolute; left: 50%; top: 50%; display: block; width: 26px !important; height: 26px !important; min-width: 26px; margin: -13px 0 0 -13px; fill: currentColor; stroke: none; opacity: 0; transform: translateX(-2px) scale(.4); transition: transform .36s cubic-bezier(.2, 1.5, .4, 1), opacity .18s ease; }
/* shown: pointer resting on the tile for a moment, or keyboard focus */
.hg-card.hg-ready .hg-play, .hg-card:has(.hg-play:focus-visible) .hg-play { opacity: 1; pointer-events: auto; transition-delay: 0s; }
.hg-card.hg-ready .hg-play::before, .hg-card:has(.hg-play:focus-visible) .hg-play::before { opacity: 1; transform: scale(1); transition-delay: .04s; }
.hg-card.hg-ready .hg-play svg, .hg-card:has(.hg-play:focus-visible) .hg-play svg { opacity: 1; transform: translateX(-2px); transition-delay: .12s; }
.hg-card.hg-ready .hg-play::after { animation: hg-play-ring 1.7s ease-out .5s infinite; }
@keyframes hg-play-ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.hg-play:hover::before { transform: scale(1.08); filter: brightness(1.08); }
.hg-play:active::before { transform: scale(.94); }
.hg-play:focus { outline: none; }
.hg-play:focus-visible::before { outline: 2px solid #fff; outline-offset: 3px; }
.hg-card.hg-ready .hg-live { opacity: 0; }
.hg-live { transition: opacity .2s ease; }
@media (hover: none), (max-width: 650px) { .hg-play { display: none !important; } .hg-card:hover .hg-live { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hg-play, .hg-play::before, .hg-play svg { transition: none !important; } .hg-play::after { animation: none !important; } }
