/* F2P Mini-Games pages (overview and sub-pages), loaded by partials/f2p-assets.hbs next to subpages.css and
   tournaments.css. Parts:
   .f2p-play_*   live game cards: art, game type, name, text, Play button (js/f2p-games.js opens the game)
   .f2p-table    the game types compared (overview)
   .f2p-hero     a hero image of real game screens on a dark round backdrop
   .f2p-lb       a lootbox week: opened, today, locked and missed days
   .f2p-odds     a prize table: name, probability bar, stock
   .f2p-list     game designs as a labelled list: screen, name, one line
   .f2p-note     the "your own design" line under a play grid */

/* ------------------------------------------------ live game cards */
.f2p-play { margin-top: 0; }
.f2p-play_grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.f2p-play_grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f2p-play_card { display: grid; grid-template-rows: auto auto auto 1fr auto auto; gap: .5rem; padding: 1rem; border-radius: 1rem; background: #fff; border: 1px solid var(--sp-line); }
.f2p-play_art { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: .75rem; background: radial-gradient(circle at 50% 35%, #3a2c6e 0%, #1b1838 70%); }
.f2p-play_art img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.f2p-play_art.is-shot img { padding: 0; }
.f2p-play_art.is-shot img { object-fit: cover; }
.f2p-play_badge { position: absolute; left: .5rem; bottom: .5rem; padding: .1875rem .5rem; border-radius: 1rem; background: var(--sp-red); color: #fff; font-size: .6875rem; font-weight: 600; }
.f2p-play_type { margin: .5rem 0 0; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #0a7f86; }
.f2p-play_card h3 { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.f2p-play_desc { margin: 0; font-size: .9375rem; color: var(--sp-muted); line-height: 1.45; }
.f2p-play_btn { justify-self: start; margin-top: .5rem; cursor: pointer; }
.f2p-play_btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.f2p-play_msg { margin: 0; font-size: .8125rem; color: #b8352f; }
.f2p-play_msg:empty { display: none; }
.f2p-note { max-width: 48rem; margin: 1.75rem 0 0; color: var(--sp-muted); font-size: 1rem; line-height: 1.55; }
@media (max-width: 991px) { .f2p-play_grid, .f2p-play_grid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .f2p-play_grid, .f2p-play_grid.is-3 { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------ the game types compared */
.f2p-table_wrap { overflow-x: auto; border: 1px solid var(--sp-line); border-radius: .875rem; background: #fff; }
.f2p-table { width: 100%; min-width: 46rem; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.f2p-table th, .f2p-table td { padding: .875rem 1rem; border-bottom: 1px solid var(--sp-line); text-align: left; vertical-align: top; }
.f2p-table thead th { background: var(--sp-soft); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sp-muted); }
.f2p-table tbody tr:last-child td, .f2p-table tbody tr:last-child th { border-bottom: 0; }
.f2p-table tbody th { font-weight: 600; white-space: nowrap; }
.f2p-table a { color: #0a7f86; font-weight: 600; }

/* ------------------------------------------------ hero: real game screens */
.f2p-hero { position: relative; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.f2p-hero::before { content: ""; position: absolute; inset: 6% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(142, 108, 245, .55) 0%, rgba(17, 206, 215, .18) 45%, transparent 70%); filter: blur(8px); }
.f2p-hero img { position: relative; width: 100%; max-width: 34rem; height: auto; animation: f2pFloat 6s ease-in-out infinite; }
@keyframes f2pFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ------------------------------------------------ a lootbox week */
.f2p-lb { width: 100%; max-width: 32rem; margin: 0 auto; padding: 1.125rem; border-radius: 1rem; background: linear-gradient(160deg, #2a1f55, #171431); color: #fff; font-family: inherit; }
.f2p-lb_head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .875rem; font-size: .9375rem; font-weight: 600; }
.f2p-lb_head span { padding: .1875rem .5rem; border-radius: 1rem; background: rgba(255, 255, 255, .12); font-size: .75rem; font-weight: 600; }
.f2p-lb_days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4375rem; margin: 0; padding: 0; list-style: none; }
.f2p-lb_day { display: flex; flex-direction: column; align-items: center; gap: .3125rem; padding: .5rem .125rem; border-radius: .625rem; background: rgba(255, 255, 255, .08); font-size: .6875rem; text-align: center; }
.f2p-lb_day i { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 3 / 4; border-radius: .4375rem; background: linear-gradient(160deg, #8e6cf5, #5a3fc0); font-style: normal; font-size: .6875rem; font-weight: 700; line-height: 1.15; }
.f2p-lb_day.is-open i { background: #fff; color: #2a1f55; }
.f2p-lb_day.is-missed i { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .45); text-decoration: line-through; }
.f2p-lb_day.is-today i { background: linear-gradient(160deg, #f9c440, #f15851); color: #fff; box-shadow: 0 0 0 2px #f9c440, 0 0 1.25rem rgba(249, 196, 64, .55); animation: f2pPulse 2.4s ease-in-out infinite; }
.f2p-lb_day.is-locked i { opacity: .45; }
.f2p-lb_foot { margin: .875rem 0 0; font-size: .8125rem; color: rgba(255, 255, 255, .75); }
@keyframes f2pPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ------------------------------------------------ a prize table with odds */
.f2p-odds { width: 100%; max-width: 30rem; margin: 0 auto; border: 1px solid var(--sp-line); border-radius: 1rem; background: #fff; color: var(--sp-ink); text-align: left; box-shadow: 0 1rem 2.5rem rgba(29, 32, 51, .08); }
.f2p-odds_list { display: grid; gap: .625rem; margin: 0; padding: 1rem 1.125rem; list-style: none; }
.f2p-odds_row { display: grid; grid-template-columns: 7.5rem 1fr 3rem; align-items: center; gap: .75rem; font-size: .8125rem; }
.f2p-odds_row b { font-weight: 600; }
.f2p-odds_bar { height: .5rem; border-radius: 1rem; background: var(--sp-soft); overflow: hidden; }
.f2p-odds_bar i { display: block; height: 100%; border-radius: 1rem; background: linear-gradient(90deg, #11ced7, #8e6cf5); transform-origin: left; animation: f2pGrow 1.6s ease-out both; }
.f2p-odds_row span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--sp-muted); }
.f2p-odds_foot { margin: 0; padding: .75rem 1.125rem; border-top: 1px solid var(--sp-line); font-size: .8125rem; color: var(--sp-muted); }
@keyframes f2pGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }


@media (prefers-reduced-motion: reduce) {
  .f2p-hero img, .f2p-lb_day.is-today i, .f2p-odds_bar i { animation: none; }
}

/* ------------------------------------------------ a labelled list of game designs (screen, name, one line) */
.f2p-list { width: 100%; max-width: 32rem; margin: 0 auto; border: 1px solid var(--sp-line); border-radius: 1rem; background: #fff; color: var(--sp-ink); box-shadow: 0 1rem 2.5rem rgba(29, 32, 51, .08); }
.f2p-list_rows { display: grid; gap: .625rem; margin: 0; padding: 1rem 1.125rem; list-style: none; }
.f2p-list_row { display: grid; grid-template-columns: 8.5rem 1fr; align-items: center; gap: .875rem; }
.f2p-list_row img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: .5rem; }
.f2p-list_t { display: grid; gap: .125rem; font-size: .8125rem; line-height: 1.35; color: var(--sp-muted); }
.f2p-list_t > b { font-size: .9375rem; color: var(--sp-ink); }
.f2p-list_t b b, .f2p-list_t span b { color: var(--sp-ink); }

/* ------------------------------------------------ game artwork in a side block: a dark stage that it fills */
.sp-visual > .f2p-hero { width: 100%; min-height: 22rem; padding: 1.5rem; border-radius: .75rem; background: radial-gradient(circle at 50% 40%, #3a2c6e 0%, #1b1838 72%); overflow: hidden; }
.sp-visual > .f2p-hero::before { inset: 10%; }
.sp-visual > .f2p-hero img { max-width: 100%; max-height: 24rem; width: auto; }
.f2p-play_grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 52rem; }
@media (max-width: 479px) { .f2p-play_grid.is-2 { grid-template-columns: minmax(0, 1fr); } }
