/* =============================================================================
 * games.css — Free Games section (inherits :root tokens from style.css).
 * ========================================================================== */
.pg-game main, .pg-games main { padding-bottom: 3rem; }
.games-crumbs { display: flex; gap: .5ch; align-items: center; font-size: .8rem; color: var(--muted); margin: 1.4rem 0 1rem; flex-wrap: wrap; }
.games-crumbs a { color: var(--teal-d); } .games-crumbs a:hover { text-decoration: underline; }
.games-crumbs span { color: var(--line-2); }

.btn--ghost { background: transparent; border: 1.5px solid var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-d); }
.btn--block { display: flex; width: 100%; }

/* ---- game page layout ------------------------------------------------------ */
.game { padding-top: .5rem; }
.game__grid { display: grid; grid-template-columns: 1fr 330px; gap: 2rem; align-items: start; }
.game__title { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.12; margin: 0 0 .4rem; color: var(--ink); }
.game__sub { color: var(--ink-soft); margin: 0 0 1.1rem; }
.game__ctarow { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-bottom: 1rem; }
.game__ctarow--mid { margin: 1.2rem 0; }

/* click-to-play */
.gplay { position: relative; aspect-ratio: 16 / 9; background: #0b1a18; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gplay__poster { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); }
.gplay__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gplay__btn { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; padding: .9em 1.6em; background: var(--teal); color: #fff; border: none; border-radius: 999px; font: 700 1rem/1 var(--font); cursor: pointer; box-shadow: 0 10px 30px rgba(13,148,136,.5); transition: transform .12s, background .2s; }
.gplay__btn:hover { background: var(--teal-d); transform: translate(-0%, -2px); }
.gplay.is-playing .gplay__badge { display: none; }
.gplay__badge { position: absolute; right: 8px; bottom: 8px; }
.sr-badge { display: inline-block; font-size: .64rem; letter-spacing: .3px; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .55rem; }
.sr-badge:hover { color: var(--teal-d); }

.games-gate { margin: 1rem 0; padding: .7rem .9rem; background: var(--coral-soft); border: 1px solid #f8c9cf; border-radius: var(--radius-sm); font-size: .82rem; color: #7c2d3a; }
.games-gate a { color: #7c2d3a; text-decoration: underline; }

.game__copy { margin-top: 1.8rem; }
.game__copy h2, .game__faq h2, .game__rel h2 { font-size: 1.3rem; margin: 0 0 .8rem; color: var(--ink); }
.game__copy p { color: var(--ink-soft); margin: 0 0 .9rem; line-height: 1.72; }
.gtags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.gtag { font-size: .72rem; color: var(--teal-d); background: var(--teal-soft); border-radius: 999px; padding: .25rem .6rem; }
.gtag--f { color: var(--ink-soft); background: var(--paper-3); }

.game__faq { margin-top: 2rem; }
.game__rel { margin-top: 2rem; }

/* sidebar */
.game__side { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 80px; }
.panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.panel__t { font-size: .78rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 0 0 .8rem; }
.panel--cta { background: linear-gradient(180deg, var(--teal-soft), var(--paper-2)); border-color: var(--teal-2); }
.panel--cta p { font-size: .86rem; color: var(--ink-soft); margin: 0 0 .8rem; }
.panel__link { display: inline-block; margin-top: .7rem; color: var(--teal-d); font-size: .84rem; font-weight: 600; }
.panel__links { list-style: none; margin: 0; padding: 0; }
.panel__links li { margin: .45rem 0; } .panel__links a { color: var(--ink); font-size: .86rem; } .panel__links a:hover { color: var(--teal-d); }
.specs { margin: 0; } .spec { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px dashed var(--line); font-size: .84rem; }
.spec:first-child { border-top: none; } .spec dt { color: var(--muted); } .spec dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }

/* ---- hubs (index / category / provider) ------------------------------------ */
.games-hub { padding-top: .5rem; }
.games-hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); line-height: 1.1; margin: 0 0 .7rem; color: var(--ink); }
.games-hero p { color: var(--ink-soft); max-width: 70ch; line-height: 1.7; margin: 0 0 .3rem; }
.games-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: 1.2rem 0 1.6rem; }
.games-search { margin: 1.4rem 0; }
#gsearch { width: 100%; max-width: 520px; padding: .8em 1.1em; font: 1rem var(--font); border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--paper-2); color: var(--ink); }
#gsearch:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.games-sec { margin: 1.8rem 0 .6rem; } .games-sec h2 { font-size: 1.2rem; margin: 0 0 .8rem; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .5ch; font-size: .82rem; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .8rem; }
.chip:hover { border-color: var(--teal); color: var(--teal-d); }
.chip span { font-size: .72rem; color: var(--muted); background: var(--paper-3); border-radius: 999px; padding: .05rem .45rem; }
.games-more { margin: 1.2rem 0; color: var(--muted); font-size: .84rem; } .games-more a { color: var(--teal-d); text-decoration: underline; }
.games-empty { color: var(--muted); padding: 1rem 0; }

/* ---- cards ----------------------------------------------------------------- */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.gcards--grid { margin-top: 1rem; }
.gcard { display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .12s var(--ease), box-shadow .2s, border-color .2s; }
.gcard:hover { transform: translateY(-3px); border-color: var(--teal-2); box-shadow: var(--shadow); }
.gcard__thumb { aspect-ratio: 3 / 2; background: var(--paper-3); overflow: hidden; }
.gcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gcard__b { display: flex; flex-direction: column; gap: .1rem; padding: .6rem .7rem .75rem; }
.gcard__t { font-weight: 700; font-size: .86rem; color: var(--ink); line-height: 1.2; }
.gcard__p { font-size: .74rem; color: var(--muted); }
.gcard__m { font-size: .72rem; color: var(--teal-d); margin-top: .15rem; }

@media (max-width: 900px) {
  .game__grid { grid-template-columns: 1fr; }
  .game__side { position: static; flex-direction: column; }
}
@media (max-width: 560px) {
  .gcards { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
