/* Shared game page template (ETS2, ATS, Palworld, Valheim, BeamMP, game hosting hub).
   Builds on modern.css tokens (--ph-*). */

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* ---------- Hero ---------- */
.gp-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 150px 0 96px; background: var(--ph-navy); }
.gp-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.gp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7, 26, 61, .96) 0%, rgba(7, 26, 61, .88) 45%, rgba(8, 64, 160, .55) 100%); }
.gp-hero h1 { color: #fff; margin-bottom: 1rem; }
.gp-hero .lead { color: rgba(255, 255, 255, .9); max-width: 38rem; }
.gp-kicker { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: .85rem; font-weight: 650; margin-bottom: 1rem; }
.gp-chips { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.gp-chips li { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: .9rem; font-weight: 600; color: #fff; }
.gp-chips i { color: #ffc24a; }
.gp-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.gp-hero-art { display: block; max-width: 100%; height: auto; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.gp-note { margin-top: 1rem; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.gp-note i { color: #ffc24a; margin-right: .35rem; }

/* ---------- Event banner (hidden until filled in) ---------- */
.gp-event { margin: -40px auto 0; position: relative; z-index: 3; max-width: 1110px; padding: 0 12px; }
.gp-event-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1.1rem 1.4rem; border-radius: 18px; background: #fff; border: 2px solid var(--ph-orange-btn); box-shadow: var(--ph-shadow-lg); }
.gp-event-icon { flex: 0 0 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(199, 74, 18, .12); color: var(--ph-orange-btn); font-size: 1.3rem; }
.gp-event-text { flex: 1 1 260px; }
.gp-event-text strong { display: block; color: var(--ph-ink); font-size: 1.05rem; }
.gp-event-text span, .gp-event-text p { color: var(--ph-muted); margin: 0; font-size: .92rem; }
.gp-event-code { font-weight: 700; color: var(--ph-ink); }
.gp-event-code code { font-size: 1rem; color: #8a3305; background: rgba(199, 74, 18, .1); padding: .15rem .5rem; border-radius: 6px; }

/* ---------- Sections ---------- */
.gp-section { padding: 88px 0; }
.gp-section--soft { background: var(--ph-soft); }
.gp-head { max-width: 46rem; margin: 0 auto 2.25rem; text-align: center; }
.gp-head p { margin: .5rem 0 0; }

/* ---------- Currency switcher ---------- */
.gp-currency { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; margin-bottom: .75rem; }
.gp-currency-label { font-weight: 650; color: var(--ph-ink); margin-right: .25rem; }
.gp-currency button { min-width: 64px; min-height: 44px; padding: .4rem .9rem; border-radius: 12px; border: 1.5px solid var(--ph-line); background: #fff; color: var(--ph-ink); font-weight: 700; }
.gp-currency button:hover { border-color: rgba(9, 72, 179, .45); }
.gp-currency button[aria-pressed="true"] { background: var(--ph-blue); border-color: var(--ph-blue); color: #fff; }
.gp-currency button:focus-visible { outline: 3px solid var(--ph-orange-btn); outline-offset: 2px; }
.gp-tax { text-align: center; color: var(--ph-muted); font-size: .9rem; margin-bottom: 2rem; }

/* ---------- Plans ---------- */
.gp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.gp-plan { position: relative; display: flex; flex-direction: column; padding: 1.5rem 1.25rem 1.25rem; border-radius: 20px; background: #fff; border: 1px solid var(--ph-line); box-shadow: var(--ph-shadow); transition: transform .2s var(--ph-ease), box-shadow .2s var(--ph-ease), border-color .2s; }
.gp-plan:hover { transform: translateY(-3px); box-shadow: var(--ph-shadow-lg); border-color: rgba(9, 72, 179, .3); }
.gp-plan.is-popular { border: 2px solid var(--ph-blue); }
.gp-badge { position: absolute; top: -12px; left: 1.25rem; padding: .2rem .6rem; border-radius: 8px; background: var(--ph-blue); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .03em; }
.gp-plan h3 { font-size: 1.6rem; font-weight: 800; color: var(--ph-ink); margin: 0; }
.gp-plan-sub { color: var(--ph-muted); font-size: .9rem; margin: .15rem 0 1rem; min-height: 1.4em; }
.gp-price-row { display: flex; align-items: baseline; gap: .3rem; margin-bottom: .25rem; }
.gp-price { font-size: 1.9rem; font-weight: 800; color: var(--ph-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gp-per { color: var(--ph-muted); font-weight: 600; }
.gp-price-note { font-size: .78rem; color: var(--ph-muted); margin: 0 0 .5rem; }
.gp-plan ul { list-style: none; padding: 0; margin: .75rem 0 1.25rem; flex: 1; }
.gp-plan li { display: flex; gap: .5rem; align-items: baseline; padding: .25rem 0; font-size: .92rem; color: #3d4b63; }
.gp-plan li i { color: #146c3a; }
.gp-plan .btn { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; }

/* ---------- Steps ---------- */
.gp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; counter-reset: gp; }
.gp-steps li { position: relative; padding: 1.4rem 1.2rem 1.2rem; border-radius: 18px; background: #fff; border: 1px solid var(--ph-line); counter-increment: gp; }
.gp-steps li::before { content: counter(gp); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ph-blue); color: #fff; font-weight: 800; margin-bottom: .75rem; }
.gp-steps h3 { font-size: 1rem; font-weight: 750; color: var(--ph-ink); margin-bottom: .35rem; }
.gp-steps p { margin: 0; font-size: .92rem; }
.gp-steps code { color: #8a3305; background: rgba(199, 74, 18, .08); padding: .05rem .35rem; border-radius: 5px; font-size: .86em; word-break: break-word; }

/* ---------- Region callout ---------- */
.gp-region { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 2rem; padding: 1.25rem 1.5rem; border-radius: 18px; background: linear-gradient(110deg, var(--ph-blue-600), var(--ph-blue-500)); color: #fff; }
.gp-region i { font-size: 1.6rem; color: #ffc24a; }
.gp-region div { flex: 1 1 280px; }
.gp-region strong { display: block; font-size: 1.05rem; color: #fff; }
.gp-region p { margin: 0; color: rgba(255, 255, 255, .88); font-size: .94rem; }
.gp-region a { color: #fff; text-decoration: underline; }

/* ---------- Features ---------- */
.gp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.gp-feature { padding: 1.4rem; border-radius: 18px; background: #fff; border: 1px solid var(--ph-line); }
.gp-feature i { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(9, 72, 179, .09); color: var(--ph-blue); font-size: 1.1rem; margin-bottom: .75rem; }
.gp-feature h3 { font-size: 1.02rem; font-weight: 750; color: var(--ph-ink); margin-bottom: .35rem; }
.gp-feature p { margin: 0; font-size: .93rem; }

/* ---------- FAQ ---------- */
.gp-faq { max-width: 52rem; margin: 0 auto; }
.gp-faq details { border: 1px solid var(--ph-line); border-radius: 14px; background: #fff; margin-bottom: .65rem; }
.gp-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; min-height: 52px; font-weight: 700; color: var(--ph-ink); }
.gp-faq summary::-webkit-details-marker { display: none; }
.gp-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ph-blue); flex: 0 0 auto; }
.gp-faq details[open] summary::after { content: "\2212"; }
.gp-faq details[open] summary { color: var(--ph-blue); }
.gp-faq summary:focus-visible { outline: 3px solid var(--ph-orange-btn); outline-offset: 2px; border-radius: 14px; }
.gp-faq .gp-answer { padding: 0 1.2rem 1.1rem; }
.gp-faq .gp-answer p { margin: 0 0 .5rem; color: #3d4b63; }
.gp-faq .gp-answer a { text-decoration: underline; }

/* ---------- CTA ---------- */
.gp-cta { padding: 2rem; border-radius: 24px; background: linear-gradient(110deg, var(--ph-blue-600), var(--ph-blue-500)); color: #fff; display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between; }
.gp-cta h2 { color: #fff; margin: 0 0 .35rem; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.gp-cta p { margin: 0; color: rgba(255, 255, 255, .88); }
.gp-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.gp-cta a:not(.btn) { color: #fff; text-decoration: underline; }

/* ---------- Game hub grid ---------- */
.gp-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.gp-game { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--ph-line); box-shadow: var(--ph-shadow); transition: transform .2s var(--ph-ease), box-shadow .2s var(--ph-ease); }
.gp-game:hover { transform: translateY(-3px); box-shadow: var(--ph-shadow-lg); }
.gp-game img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.gp-game-body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.gp-game h3 { font-size: 1.05rem; font-weight: 750; color: var(--ph-ink); margin: 0; }
.gp-game h3 a { color: inherit; text-decoration: none; }
.gp-game h3 a::after { content: ""; position: absolute; inset: 0; }
.gp-game h3 a:focus-visible { outline: none; }
.gp-game:focus-within { outline: 3px solid var(--ph-orange-btn); outline-offset: 2px; }
.gp-game p { margin: 0; font-size: .88rem; }
.gp-game .gp-from { margin-top: auto; padding-top: .35rem; font-weight: 700; color: var(--ph-ink); }
.gp-game .gp-from .gp-price { font-size: 1.05rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .gp-hero { padding: 120px 0 80px; }
    .gp-hero-art { max-width: 220px; margin-top: 1.5rem; }
}
@media (max-width: 575.98px) {
    .gp-section { padding: 64px 0; }
    .gp-hero-actions .btn { flex: 1 1 100%; }
    .gp-cta { padding: 1.5rem; }
    .gp-cta-actions, .gp-cta-actions .btn { width: 100%; }
    .gp-event { margin-top: -28px; }
}
@media (prefers-reduced-motion: reduce) {
    .gp-plan, .gp-game { transition: none; }
}
@media (max-width: 575.98px) {
    .gp-games { grid-template-columns: 1fr 1fr; gap: .65rem; }
    .gp-game-body { padding: .7rem .75rem .85rem; }
    .gp-game h3 { font-size: .92rem; }
    .gp-game p { font-size: .8rem; }
    .gp-game .gp-from .gp-price { font-size: .95rem; }
}
.gp-event-text strong span { color: inherit; font-size: inherit; }
