/*
Theme Name: FreeGamezo
Theme URI: https://freegamezo.com/
Author: FreeGamezo
Author URI: https://freegamezo.com/
Description: A fast, game-first WordPress homepage for browser games.
Version: 1.2.0
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: freegamezo
*/

:root {
  --pf-bg: #070f18;
  --pf-surface: #111f2f;
  --pf-white: #f7fbff;
  --pf-ink: #f7fbff;
  --pf-muted: #aab8c8;
  --pf-line: #354b65;
  --pf-accent: #5ca8ff;
  --pf-accent-deep: #2c7edb;
  --pf-orange: #a4ceff;
  --pf-accent-ink: #061629;
  --pf-rail-bg: #0c1825;
  --pf-rail-icon: #d5e9ff;
  --pf-rail-width: 84px;
  --pf-rail-open: 208px;
  --pf-radius-sm: 12px;
  --pf-radius-md: 18px;
  --pf-radius-lg: 28px;
  --pf-shadow: 0 14px 38px rgba(5, 1, 10, .38);
  --pf-width: 1560px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  margin-left: var(--pf-rail-width);
  width: calc(100% - var(--pf-rail-width));
  padding-left: 0;
  background: var(--pf-bg);
  color: var(--pf-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
body.admin-bar .pf-header { top: 32px; }
body.admin-bar .pf-rail { top: 104px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--pf-orange); outline-offset: 3px; }
[hidden] { display: none !important; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.pf-wrap { width: min(calc(100% - 40px), var(--pf-width)); margin-inline: auto; }
.pf-skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 9999; padding: 12px 18px;
  border-radius: var(--pf-radius-sm); background: var(--pf-accent); color: var(--pf-accent-ink);
}
.pf-skip-link:focus { top: 16px; }

/* Company and legal pages */
.pf-info-main { padding:clamp(30px,5vw,70px) 0 0; }
.pf-info-page { width:100%; max-width:none; margin:0 auto; }
.pf-info-hero { position:relative; overflow:hidden; padding:18px clamp(22px,3vw,34px); border:1px solid rgba(212,92,255,.38); border-radius:20px; background:linear-gradient(122deg,rgba(68,25,95,.92),rgba(25,11,40,.96)); box-shadow:var(--pf-shadow); }
.pf-info-hero::after { content:''; position:absolute; inset:auto -12% -90px 42%; height:220px; background:radial-gradient(ellipse,rgba(212,92,255,.32),transparent 68%); pointer-events:none; }
.pf-info-hero > * { position:relative; z-index:1; max-width:920px; }
.pf-info-hero p { margin:0 0 5px; color:var(--pf-accent); font-size:.68rem; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.pf-info-hero h1 { margin:0; color:var(--pf-white); font-size:clamp(1.7rem,3vw,2.35rem); line-height:1.08; letter-spacing:-.04em; }
.pf-info-hero div { max-width:none; margin-top:7px; color:#d7e2ef; font-size:clamp(.9rem,1.4vw,1rem); line-height:1.5; }
.pf-info-hero small { display:block; margin-top:9px; color:var(--pf-muted); font-size:.76rem; }
.pf-info-body { display:grid; gap:16px; margin-top:22px; }
.pf-info-card,.pf-info-rich { padding:clamp(22px,3vw,34px); border:1px solid rgba(121,69,151,.5); border-radius:var(--pf-radius-md); background:rgba(33,17,47,.74); }
.pf-info-card h2,.pf-info-rich h2 { margin:0 0 9px; color:var(--pf-white); font-size:1.22rem; }
.pf-info-card p,.pf-info-rich p,.pf-info-rich li { margin:0; color:#cad6e3; line-height:1.75; }
.pf-info-rich > * + * { margin-top:18px; }
.pf-info-page a { color:#94c6ff; font-weight:750; text-decoration:underline; text-underline-offset:3px; }
.pf-info-breadcrumb { margin-bottom:12px; }
.pf-info-toc { display:grid; grid-template-columns:minmax(180px,.28fr) minmax(0,1fr); gap:30px; margin-top:18px; padding:22px 24px; border:1px solid rgba(121,69,151,.5); border-left:3px solid var(--pf-accent); border-radius:16px; background:linear-gradient(105deg,rgba(53,20,74,.78),rgba(33,17,47,.72)); }
.pf-info-toc p,.pf-info-related>p { margin:0; color:var(--pf-accent); font-size:.72rem; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.pf-info-toc span { display:block; margin-top:4px; color:var(--pf-muted); font-size:.82rem; }
.pf-info-toc ol { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:26px; row-gap:2px; margin:0; padding:0; list-style-position:inside; color:var(--pf-accent); }
.pf-info-toc li { min-width:0; padding:0; font-size:.85rem; font-weight:900; }
.pf-info-toc li::marker { color:var(--pf-accent); font-variant-numeric:tabular-nums; }
.pf-info-toc a { min-height:42px; display:inline-flex; align-items:center; max-width:calc(100% - 28px); padding:5px 3px; color:#dfeeff; line-height:1.35; text-decoration:none; transition:color .18s ease,transform .18s ease; }
.pf-info-toc a:hover,.pf-info-toc a:focus-visible { color:var(--pf-accent); transform:translateX(3px); }
.pf-info-related a { min-height:38px; display:inline-flex; align-items:center; padding:0 13px; border:1px solid rgba(212,92,255,.42); border-radius:999px; background:rgba(20,7,31,.44); color:#dfeeff; font-size:.8rem; font-weight:800; line-height:1.2; text-decoration:none; transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease; }
.pf-info-related a:hover,.pf-info-related a:focus-visible { border-color:var(--pf-accent); background:#153152; color:#fff; transform:translateY(-1px); }
.pf-info-rich h2,.pf-info-rich h3 { scroll-margin-top:96px; }
.pf-info-related { margin-top:22px; padding:22px; border-top:1px solid rgba(121,69,151,.58); background:rgba(33,17,47,.74); border-right:1px solid rgba(121,69,151,.5); border-bottom:1px solid rgba(121,69,151,.5); border-left:1px solid rgba(121,69,151,.5); border-radius:var(--pf-radius-md); }
.pf-info-related>div { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
@media (max-width:700px) { .pf-info-toc { grid-template-columns:1fr; gap:12px; padding:17px; }.pf-info-toc ol { grid-template-columns:1fr; }.pf-info-toc a,.pf-info-related a { min-height:42px; }.pf-info-related { padding:18px; } }
@media (max-width:700px) { .pf-info-main { padding-top:18px; } .pf-info-hero { padding:16px 18px; border-radius:16px; } .pf-info-card,.pf-info-rich { padding:22px; } }

.pf-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(212, 92, 255, .2);
  background: rgba(16, 7, 24, .92); backdrop-filter: blur(18px);
}
.pf-header__inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.pf-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.pf-brand__logo { width: 174px; height: auto; max-height: 58px; object-fit: contain; }
.pf-nav { margin-left: auto; }
.pf-nav ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.pf-nav a { font-size: .9rem; font-weight: 800; color: var(--pf-muted); }
.pf-nav a:hover { color: var(--pf-accent); }
.pf-header__random {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 15px;
  border-radius: var(--pf-radius-sm); background: var(--pf-accent); color: var(--pf-accent-ink); font-size: .85rem; font-weight: 850;
}
.pf-header__random:hover { background: #84bdff; }
.pf-header__random svg { width: 17px; height: 17px; color: currentColor; }
.pf-menu-toggle {
  display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius-sm); background: var(--pf-surface); color: var(--pf-ink); cursor: pointer;
}
.pf-menu-toggle svg { width: 21px; height: 21px; }

/* Header action menu. */
.pf-actions {
  margin-left: auto; display: flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 5px 7px; border: 1px solid var(--pf-line); border-radius: 18px;
  background: rgba(33,17,47,.82); box-shadow: 0 12px 34px rgba(5,1,10,.22);
}
.pf-actions__group { display: flex; align-items: center; gap: 2px; }
.pf-actions__sep { width: 1px; height: 28px; background: var(--pf-line); }
.pf-action {
  position: relative; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--pf-muted);
  font: inherit; font-size: .86rem; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.pf-action:hover, .pf-action:focus-visible { color: var(--pf-white); background: rgba(255,255,255,.07); }
.pf-action:focus-visible { outline: 2px solid var(--pf-accent); outline-offset: 2px; }
.pf-action svg { width: 18px; height: 18px; flex: 0 0 auto; }
.pf-action--primary { padding-inline: 16px; color: var(--pf-accent-ink); background: var(--pf-accent); box-shadow: 0 8px 22px rgba(212,92,255,.22); }
.pf-action--primary:hover, .pf-action--primary:focus-visible { color: var(--pf-accent-ink); background: #84bdff; }
.pf-action__count { min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 99px; background: var(--pf-accent); color: var(--pf-accent-ink); font-size: .68rem; font-style: normal; }

.pf-search-overlay, .pf-popup { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 22px; }
.pf-search-overlay[hidden], .pf-popup[hidden] { display: none; }
.pf-search-overlay__backdrop, .pf-popup__backdrop { position: absolute; inset: 0; background: rgba(7,2,12,.78); backdrop-filter: blur(9px); }
.pf-search-overlay__dialog, .pf-popup__dialog {
  position: relative; width: min(720px, 100%); max-height: min(720px, calc(100vh - 44px)); overflow: auto;
  padding: 34px; border: 1px solid var(--pf-line); border-radius: 24px; background: var(--pf-surface); box-shadow: 0 28px 90px rgba(0,0,0,.55);
}
.pf-search-overlay__eyebrow, .pf-popup__eyebrow { margin: 0 0 7px; color: var(--pf-accent); font-size: .75rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.pf-dialog-title { margin: 0 45px 22px 0; color: var(--pf-white); font-size: clamp(1.6rem,4vw,2.4rem); font-weight: 800; line-height: 1.15; }
.pf-search-overlay__form { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border: 1px solid var(--pf-line); border-radius: 16px; background: var(--pf-bg); }
.pf-search-overlay__form svg { width: 21px; height: 21px; color: var(--pf-muted); }
.pf-search-overlay__form input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--pf-white); font: inherit; }
.pf-search-overlay__form button, .pf-popup__foot button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 11px; background: var(--pf-accent); color: var(--pf-accent-ink); font-weight: 900; cursor: pointer; }
.pf-search-overlay__tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.pf-search-overlay__tags a { padding: 9px 13px; border: 1px solid var(--pf-line); border-radius: 99px; color: var(--pf-white); background: rgba(255,255,255,.04); font-weight: 700; }
.pf-search-overlay__hint, .pf-popup__hint { margin: 22px 0 0; color: var(--pf-muted); font-size: .78rem; }
.pf-search-overlay__close, .pf-popup__close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--pf-line); border-radius: 12px; background: var(--pf-bg); color: var(--pf-white); cursor: pointer; }
.pf-search-overlay__close svg, .pf-popup__close svg { width: 18px; height: 18px; }
.pf-popup__empty { color: var(--pf-muted); }
.pf-popup__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.pf-popup__tile { min-width: 0; color: var(--pf-white); font-weight: 800; }
.pf-popup__tile img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; }
.pf-popup__tile span { display: block; padding-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-popup__foot { display: flex; justify-content: flex-end; margin-top: 18px; }

@media (max-width: 860px) {
  .pf-actions { gap: 3px; padding: 4px; }
  .pf-actions__sep { display: none; }
  .pf-action { width: 40px; padding: 0; }
  .pf-action span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pf-action--primary { width: 44px; }
}
@media (max-width: 560px) {
  .pf-brand__logo { width: 122px; }
  .pf-actions__group { display: flex; }
  .pf-actions__sep { display: none; }
  .pf-header__inner { position: relative; }
  .pf-actions { position: absolute; right: 0; min-height: 48px; gap: 2px; padding: 4px; }
  .pf-action { width: 36px; min-height: 36px; padding: 0; }
  .pf-action--primary { width: 40px; }
  .pf-search-overlay__dialog, .pf-popup__dialog { padding: 26px 20px; border-radius: 20px; }
  .pf-popup__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Icon rail sidebar — collapsed big icons, expands on hover/scroll/focus */
.pf-rail {
  position: fixed; left: 0; top: 72px; bottom: 0; z-index: 40; width: var(--pf-rail-width);
  display: flex; flex-direction: column; align-items: stretch; padding: 12px 10px;
  border-right: 0; background: var(--pf-rail-bg);
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; -ms-overflow-style: none;
  transition: width .22s ease, box-shadow .22s ease;
}
.pf-rail::after {
  content: ""; position: fixed; top: 72px; bottom: 0; left: calc(var(--pf-rail-width) - 2px); z-index: 2; width: 2px;
  background: linear-gradient(180deg, rgba(212,92,255,.18) 0%, var(--pf-accent) 24%, var(--pf-accent-deep) 58%, var(--pf-orange) 82%, rgba(212,92,255,.18) 100%);
  box-shadow: 0 0 10px rgba(212,92,255,.25);
  pointer-events: none; transition: left .22s ease;
}
body.admin-bar .pf-rail::after { top: 104px; }
.pf-rail:hover::after, .pf-rail:focus-within::after, .pf-rail.is-expanded::after { left: calc(var(--pf-rail-open) - 2px); }
.pf-rail::-webkit-scrollbar { display: none; width: 0; height: 0; }
.pf-rail:hover, .pf-rail:focus-within, .pf-rail.is-expanded {
  width: var(--pf-rail-open); box-shadow: 0 18px 50px rgba(5, 1, 10, .55);
}
.pf-rail ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pf-rail__link {
  min-width: 52px; min-height: 62px; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 0;
  padding: 10px 6px; border: 1px solid transparent; border-radius: 14px; color: var(--pf-rail-icon); text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.pf-rail__link svg { width: 30px; height: 30px; justify-self: center; display: block; margin: 0; color: #d5e9ff; }
.pf-rail__link:hover { background: var(--pf-surface); border-color: var(--pf-line); }
.pf-rail__link:hover svg { color: #d5e9ff; }
.pf-rail__link.is-active { background: #17283b; border-color: var(--pf-rail-icon); }
.pf-rail__link:focus-visible { outline: 3px solid var(--pf-orange); outline-offset: 2px; }
.pf-rail__label {
  display: block; justify-self: start; width: 100%; overflow: hidden; max-width: 0; opacity: 0; white-space: nowrap; text-align: left;
  color: #d5e9ff; font-size: .82rem; font-weight: 800; line-height: 1.2;
  text-overflow: ellipsis; transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease, max-width .22s ease;
}
.pf-rail:hover .pf-rail__link, .pf-rail:focus-within .pf-rail__link, .pf-rail.is-expanded .pf-rail__link { column-gap: 10px; }
.pf-rail:hover .pf-rail__label, .pf-rail:focus-within .pf-rail__label, .pf-rail.is-expanded .pf-rail__label {
  max-width: 140px; opacity: 1; transform: translateX(0);
}

.pf-main { padding: 14px 0 74px; }
.pf-hero { min-width: 0; }
.pf-hero-shell { position: relative; isolation: isolate; }
.pf-hero-shell::before,
.pf-hero-shell::after {
  content: ""; position: absolute; top: -7px; bottom: 3px; z-index: 4; width: 112px;
  pointer-events: none;
}
.pf-hero-shell::before {
  left: 0; background: linear-gradient(90deg, rgba(16, 7, 24, .78) 0%, rgba(16, 7, 24, .68) 22%, rgba(16, 7, 24, .3) 56%, rgba(16, 7, 24, 0) 100%);
}
.pf-hero-shell::after {
  right: 0; background: linear-gradient(270deg, rgba(16, 7, 24, .78) 0%, rgba(16, 7, 24, .68) 22%, rgba(16, 7, 24, .3) 56%, rgba(16, 7, 24, 0) 100%);
}
.pf-hero-grid {
  display: flex; gap: 14px; padding: 3px 2px 12px; overflow-x: auto; overscroll-behavior-inline: contain;
  scroll-behavior: smooth; scroll-snap-type: inline mandatory; scrollbar-width: none;
}
.pf-hero-grid::-webkit-scrollbar { display: none; }
.pf-feature {
  position: relative; flex: 0 0 calc((100% - 42px) / 4); min-width: 0; overflow: hidden; aspect-ratio: 8 / 5;
  border: 1px solid rgba(212, 92, 255, .28); border-radius: 14px; background: #13253a;
  box-shadow: 0 10px 24px rgba(5, 1, 10, .28); scroll-snap-align: start;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pf-feature__art {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.pf-card__play {
  position: absolute; z-index: 3; display: grid; place-items: center; border-radius: 50%; background: var(--pf-accent);
  opacity: 0; transform: scale(.8); transition: opacity .18s ease, transform .18s ease;
}
.pf-card__play::before { content: ""; width: 0; height: 0; margin-left: 3px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid var(--pf-accent-ink); }
.pf-feature:hover { border-color: var(--pf-accent); box-shadow: 0 14px 30px rgba(5, 1, 10, .42); transform: translateY(-3px); }
.pf-hero-arrow {
  position: absolute; top: calc(50% - 6px); z-index: 5; width: 52px; height: 52px; display: grid; place-items: center;
  border: 2px solid #5b8fca; border-radius: 50%; background: linear-gradient(145deg, #355c89, #1b3859); color: var(--pf-white);
  box-shadow: 0 7px 0 #09131f, 0 16px 30px rgba(5, 1, 10, .62), inset 0 1px 0 rgba(255, 255, 255, .2);
  cursor: pointer; transform: translateY(calc(-50% - 3px)); transition: background .2s ease, opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pf-hero-arrow svg { width: 23px; height: 23px; stroke-width: 2.6; }
.pf-hero-arrow--prev { left: -40px; }
.pf-hero-arrow--prev svg { transform: rotate(180deg); }
.pf-hero-arrow--next { right: -40px; }
.pf-hero-arrow:hover { background: linear-gradient(145deg, #4576ad, #21456e); transform: translateY(calc(-50% - 3px)) scale(1.05); }
.pf-hero-arrow:active { box-shadow: 0 3px 0 #09131f, 0 10px 20px rgba(5, 1, 10, .55); transform: translateY(calc(-50% + 1px)); }
.pf-hero-arrow:disabled { opacity: .3; cursor: default; transform: translateY(calc(-50% - 3px)); }

.pf-categories {
  display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 12px 14px 12px 20px;
  border: 1px solid var(--pf-line); border-radius: 17px; background: rgba(33, 17, 47, .82);
}
.pf-categories > strong { flex: 0 0 auto; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.pf-categories ul { display: flex; gap: 8px; min-width: 0; margin: 0; padding: 2px; overflow-x: auto; list-style: none; scrollbar-width: thin; }
.pf-categories a {
  min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; white-space: nowrap;
  border: 1px solid var(--pf-line); border-radius: 999px; background: #17283b; font-size: .83rem; font-weight: 850;
}
.pf-categories a:hover { border-color: var(--pf-accent); color: var(--pf-accent); transform: translateY(-1px); }
.pf-categories a span { min-width: 24px; padding: 2px 6px; border-radius: 999px; background: #203751; color: var(--pf-muted); font-size: .68rem; text-align: center; }

.pf-section { margin-top: 48px; scroll-margin-top: 90px; }
.pf-section__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.pf-section__head h1, .pf-section__head h2 { margin: 0; font-size: clamp(1.65rem, 2.8vw, 2.35rem); line-height: 1.05; letter-spacing: -.05em; }
.pf-section__more { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; color: var(--pf-accent); font-size: .83rem; font-weight: 900; }
.pf-section__more:hover { color: #afd4ff; }
.pf-section__more svg { width: 17px; height: 17px; }
.pf-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.pf-grid--recent { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.pf-card { min-width: 0; }
.pf-card__media {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--pf-radius-md);
  background: #1a2d42; box-shadow: 0 7px 20px rgba(5, 1, 10, .3);
}
.pf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.pf-card__media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .38)); opacity: 0; transition: opacity .18s ease; }
.pf-card__play { inset: 50% auto auto 50%; width: 48px; height: 48px; transform: translate(-50%, -42%) scale(.8); }
.pf-card__number {
  position: absolute; left: 9px; top: 9px; z-index: 3; min-width: 31px; height: 31px; display: grid; place-items: center;
  border: 2px solid rgba(255, 255, 255, .75); border-radius: 10px; background: #0b1724; color: var(--pf-accent); font-size: .75rem; font-weight: 950;
}
.pf-card:hover .pf-card__media img { transform: scale(1.055); }
.pf-card:hover .pf-card__media::after, .pf-card:hover .pf-card__play, .pf-card__media:focus-visible .pf-card__play { opacity: 1; }
.pf-card:hover .pf-card__play, .pf-card__media:focus-visible .pf-card__play { transform: translate(-50%, -50%) scale(1); }
.pf-card__body { padding: 10px 3px 0; }
.pf-card__body h3 { margin: 0; overflow: hidden; font-size: .91rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.pf-card__body h3 a:hover { color: var(--pf-accent); }
.pf-card__body p { margin: 3px 0 0; color: var(--pf-muted); font-size: .72rem; }
.pf-empty { grid-column: 1 / -1; margin: 0; padding: 48px 22px; border: 1px dashed #4b6582; border-radius: var(--pf-radius-md); text-align: center; color: var(--pf-muted); }

.pf-recent { padding: 22px; border: 1px solid var(--pf-line); border-radius: 22px; background: rgba(33, 17, 47, .82); }
.pf-recent .pf-section__head button { min-height: 40px; padding: 0 13px; border: 1px solid var(--pf-line); border-radius: 11px; background: #17283b; color: var(--pf-ink); cursor: pointer; font-size: .78rem; font-weight: 800; }
.pf-random {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px) auto; align-items: center; gap: clamp(22px, 4vw, 52px); margin-top: 72px; padding: 24px clamp(24px, 4vw, 48px); overflow: visible;
  border: 1px solid #305b8d; border-radius: var(--pf-radius-lg);
  background:
    radial-gradient(circle at 53% -18%, rgba(197, 64, 255, .3), transparent 44%),
    radial-gradient(circle at 9% 92%, rgba(112, 31, 157, .32), transparent 31%),
    linear-gradient(166deg, transparent 0 69%, rgba(216, 63, 255, .34) 69.4%, transparent 70.3%),
    linear-gradient(12deg, transparent 0 73%, rgba(175, 53, 231, .2) 73.4%, transparent 74.2%),
    linear-gradient(112deg, #071320 0%, #0a223d 48%, #061425 100%);
  color: var(--pf-white); box-shadow: 0 22px 50px rgba(5, 1, 10, .46), inset 0 0 42px rgba(194, 55, 255, .08);
}
.pf-random div { display: flex; flex-direction: column; }
.pf-random > div, .pf-random > a { position: relative; z-index: 2; }
.pf-random span { color: var(--pf-accent); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.pf-random strong { font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.035em; }
.pf-random__mascot { align-self: end; min-width: 0; margin: -82px 0 -25px; overflow: visible; aspect-ratio: 3 / 2; }
.pf-random__mascot img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 20px 22px rgba(8, 2, 14, .5)); }
.pf-random a { min-height: 50px; display: inline-flex; align-items: center; gap: 9px; padding: 0 19px; border-radius: 14px; background: var(--pf-accent); color: var(--pf-accent-ink); font-weight: 950; }
.pf-random a:hover { background: #84bdff; transform: translateY(-2px); }
.pf-random svg { width: 19px; height: 19px; }
.pf-home { padding-bottom:36px; }
.pf-memory-banner + .pf-section { margin-top:72px; }
.pf-random.pf-memory-banner { grid-template-columns:minmax(0,1fr) 220px auto; min-height:88px; margin-top:60px; padding:12px 28px; gap:20px; border-radius:20px; }
.pf-memory-banner > div { grid-row:1; }
.pf-memory-banner strong { font-size:clamp(1.1rem,2vw,1.6rem); line-height:1.2; }
.pf-memory-banner .pf-random__mascot { position:absolute; z-index:3; right:250px; bottom:50%; width:270px; height:200px; margin:0; transform:translateY(50%) rotate(-5deg); pointer-events:none; }
.pf-memory-banner .pf-random__mascot img { object-position:center; filter:drop-shadow(0 18px 12px rgba(0,0,0,.65)) drop-shadow(0 0 12px rgba(212,92,255,.2)); }
.pf-memory-banner > a { grid-column:3; grid-row:1; min-height:44px; padding:0 16px; font-size:.85rem; }
@media (max-width:880px) {
  .pf-random.pf-memory-banner { grid-template-columns:1fr; min-height:88px; margin-top:48px; padding:12px 170px 12px 18px; gap:8px; }
  .pf-memory-banner .pf-random__mascot { right:0; bottom:50%; width:170px; height:190px; }
  .pf-memory-banner > a { grid-column:1; grid-row:2; justify-self:start; }
}
@media (max-width:520px) {
  .pf-random.pf-memory-banner { grid-template-columns:1fr; gap:8px; }
  .pf-memory-banner > a { grid-column:1; grid-row:2; justify-self:start; }
}
.pf-random--top { min-height:112px; margin:20px 0 42px; padding-block:14px; }
.pf-random--top strong { font-size:clamp(1.2rem,2.2vw,1.7rem); }
.pf-random--top > a { min-height:44px; }
.pf-random--top .pf-random__mascot { z-index:3; height:178px; margin:-58px 0 -44px; aspect-ratio:auto; pointer-events:none; }
.pf-random--top .pf-random__mascot img { object-fit:contain; mix-blend-mode:screen; filter:drop-shadow(0 18px 15px rgba(4,0,8,.72)); }
.pf-hero + .pf-recent[hidden] + .pf-section { margin-top:38px; }

.pf-footer {
  position:relative; margin-top:24px; overflow:hidden; color:var(--pf-white); border-top:1px solid rgba(212,92,255,.42);
  background:radial-gradient(circle at 88% 44%,rgba(91,33,255,.27),transparent 26%),radial-gradient(circle at 8% 28%,rgba(212,92,255,.12),transparent 24%),linear-gradient(180deg,#09131f 0%,#060d15 100%);
}
.pf-footer::before,.pf-footer::after { content:""; position:absolute; pointer-events:none; opacity:.58; }
.pf-footer::before { inset:0; background-image:linear-gradient(rgba(107,45,210,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(107,45,210,.18) 1px,transparent 1px); background-size:34px 34px; -webkit-mask-image:linear-gradient(90deg,#000,transparent 24%,transparent 76%,#000); mask-image:linear-gradient(90deg,#000,transparent 24%,transparent 76%,#000); }
.pf-footer::after { left:-80px; bottom:65px; width:420px; height:90px; border-radius:50% 50% 0 0; background:radial-gradient(ellipse at 15% 100%,#103a6a 0 31%,transparent 32%),radial-gradient(ellipse at 36% 100%,#13447d 0 39%,transparent 40%),radial-gradient(ellipse at 62% 100%,#10345e 0 35%,transparent 36%); }
.pf-footer__pixels { position:absolute; inset:0; pointer-events:none; background:radial-gradient(circle at 91% 11%,rgba(140,50,255,.75) 0 3px,transparent 4px),radial-gradient(circle at 5% 48%,rgba(255,81,222,.72) 0 3px,transparent 4px),radial-gradient(circle at 84% 70%,rgba(128,51,255,.54) 0 3px,transparent 4px); }
.pf-footer__main { position:relative; z-index:2; display:grid; grid-template-columns:minmax(285px,.95fr) minmax(0,2.55fr) minmax(150px,.55fr); gap:30px; padding-block:64px 50px; border-bottom:1px solid rgba(127,61,223,.54); }
.pf-footer__brand { position:relative; min-width:0; }
.pf-footer__logo { display:block; width:min(100%,340px); margin-bottom:22px; }
.pf-footer__logo img { width:100%; height:auto; }
.pf-footer__brand>p { margin:0; color:#bdccdd; font-size:1rem; line-height:1.55; }
.pf-footer__count { min-height:56px; display:flex; align-items:center; gap:14px; margin-top:20px; padding:0 20px; border:1px solid rgba(163,71,255,.58); border-radius:999px; background:rgba(38,15,65,.72); box-shadow:inset 0 0 20px rgba(151,48,255,.08); color:var(--pf-accent); }
.pf-footer__count svg { width:29px; height:29px; flex:0 0 auto; fill:currentColor; }
.pf-footer__count strong { font-size:.94rem; }
.pf-footer__socials { display:flex; flex-wrap:wrap; gap:11px; margin-top:20px; }
.pf-footer__social { width:52px; height:52px; display:grid; place-items:center; border:1px solid rgba(144,79,193,.68); border-radius:11px; background:rgba(29,15,45,.88); color:#e7f2ff; transition:border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease; }
.pf-footer__social svg { width:23px; height:23px; fill:currentColor; }
.pf-footer__social:hover,.pf-footer__social:focus-visible { border-color:var(--pf-accent); background:#12263d; color:var(--pf-accent); box-shadow:0 0 22px rgba(212,92,255,.24); }
.pf-footer__social--discord { color:#8ea9ff; border-color:#4267cb; }
.pf-footer__social--youtube { color:#4a9eff; }
.pf-footer__social--twitch { color:#6cb1ff; }
.pf-footer__social--instagram { color:#8dc2ff; }
.pf-footer__scribble { position:absolute; left:-18px; bottom:-48px; color:#4496f4; font-size:.73rem; font-weight:900; font-style:italic; line-height:1.05; letter-spacing:.05em; transform:rotate(-9deg); }
.pf-footer__links { min-width:0; display:grid; grid-template-columns:1.45fr repeat(3,minmax(120px,1fr)); }
.pf-footer__group { min-width:0; padding:4px 22px; border-left:1px solid rgba(119,63,173,.32); }
.pf-footer__group h2 { min-height:32px; display:flex; align-items:center; gap:13px; margin:0 0 24px; color:var(--pf-accent); font-size:.79rem; font-weight:950; letter-spacing:.2em; text-transform:uppercase; }
.pf-footer__group--discover h2 { color:#7f9cff; }
.pf-footer__group--legal h2 { color:#76b6ff; }
.pf-footer__group h2 svg { width:28px; height:28px; flex:0 0 auto; fill:currentColor; stroke:currentColor; stroke-width:1.6; }
.pf-footer__group ul { display:grid; gap:12px; margin:0; padding:0; list-style:none; }
.pf-footer__group--games ul { grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:20px; }
.pf-footer__group a { display:inline-flex; min-height:28px; align-items:center; color:#cfdae7; font-size:.88rem; line-height:1.3; transition:color .16s ease,transform .16s ease; }
.pf-footer__group a:hover,.pf-footer__group a:focus-visible { color:var(--pf-white); transform:translateX(3px); }
.pf-footer__art { position:relative; align-self:stretch; min-height:280px; }
.pf-footer__controller { position:absolute; right:-14px; bottom:12px; width:188px; overflow:visible; transform:rotate(-8deg); filter:drop-shadow(0 0 12px rgba(122,56,255,.72)) drop-shadow(0 0 26px rgba(224,55,255,.34)); }
.pf-footer__controller path:first-child { fill:#1d60ad; stroke:#4fa1ff; stroke-width:5; }
.pf-footer__controller circle { fill:#6bb0ff; stroke:#ffad58; stroke-width:3; }
.pf-footer__controller path:not(:first-child) { fill:none; stroke:#9da9ff; stroke-width:7; stroke-linecap:round; }
.pf-footer__crown { position:absolute; right:16px; bottom:185px; width:76px; overflow:visible; transform:rotate(8deg); fill:none; stroke:#ff994f; stroke-width:6; stroke-linejoin:round; stroke-linecap:round; filter:drop-shadow(0 0 9px rgba(255,88,82,.78)); }
.pf-footer__art span { position:absolute; right:0; bottom:-6px; color:#57a5ff; font-size:1.3rem; font-weight:950; font-style:italic; line-height:.9; text-align:center; transform:rotate(-8deg); text-shadow:0 0 12px rgba(136,57,255,.55); }
.pf-footer__bottom { position:relative; z-index:2; }
.pf-footer__bottom>.pf-wrap { min-height:88px; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.pf-footer__bottom p { margin:0; color:#b3c1d0; font-size:.78rem; }
.pf-footer__motto { display:flex; align-items:center; gap:24px; color:#66a9f5; }
.pf-footer__motto strong { font-size:.68rem; letter-spacing:.19em; white-space:nowrap; }
.pf-footer__motto i { padding-inline:8px; font-style:normal; }
.pf-footer__hearts { display:flex; gap:7px; padding-right:22px; border-right:1px solid rgba(150,75,212,.42); }
.pf-footer__hearts svg { width:19px; height:19px; fill:#4ca0ff; }
.pf-footer__hearts svg:last-child { fill:none; stroke:#5298e9; stroke-width:2.5; }
@media (max-width:1350px) { .pf-footer__main { grid-template-columns:minmax(260px,.8fr) minmax(0,2.4fr); }.pf-footer__art { display:none; } }
@media (max-width:1030px) { .pf-footer__main { grid-template-columns:1fr; }.pf-footer__brand { max-width:430px; }.pf-footer__links { border-top:1px solid rgba(119,63,173,.32); padding-top:34px; }.pf-footer__group:first-child { border-left:0; padding-left:0; } }
@media (max-width:760px) { .pf-footer__main { padding-block:44px 38px; }.pf-footer__links { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:36px; }.pf-footer__group:nth-child(odd) { border-left:0; padding-left:0; }.pf-footer__bottom>.pf-wrap { align-items:flex-start; flex-direction:column; padding-block:24px; }.pf-footer__motto { gap:14px; }.pf-footer__motto strong { white-space:normal; line-height:1.8; }.pf-footer__scribble { display:none; } }
@media (max-width:460px) { .pf-footer__links { grid-template-columns:1fr; }.pf-footer__group,.pf-footer__group:nth-child(odd) { padding:0; border-left:0; }.pf-footer__group--games ul { grid-template-columns:repeat(2,minmax(0,1fr)); }.pf-footer__social { width:46px; height:46px; }.pf-footer__motto { align-items:flex-start; }.pf-footer__hearts { flex:0 0 auto; } }
.navigation.pagination { margin-top: 28px; }
.nav-links { display: flex; gap: 8px; }
.page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--pf-surface); font-weight: 800; }
.page-numbers.current { background: var(--pf-accent); color: var(--pf-accent-ink); }

.pf-game-main { padding: 24px 0 72px; }
.pf-game-page { width: min(calc(100% - 28px), 1280px); margin-inline: auto; }
.pf-game-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.pf-game-back, .pf-game-fullscreen { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--pf-line); border-radius: 13px; background: #111f2f; color: var(--pf-white); font-size: .82rem; font-weight: 850; cursor: pointer; }
.pf-game-back { padding: 0 16px; }
.pf-game-back svg { width: 18px; height: 18px; transform: rotate(180deg); }
.pf-game-title { min-width: 0; margin: 0 auto 0 0; overflow: hidden; font-size: clamp(1.15rem, 2.5vw, 1.8rem); line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.pf-game-fullscreen { width: 46px; flex: 0 0 46px; padding: 0; }
.pf-game-fullscreen svg { width: 20px; height: 20px; }
.pf-game-back:hover, .pf-game-fullscreen:hover { border-color: var(--pf-accent); background: #172d46; }
.pf-game-stage { position: relative; width: 100%; overflow: hidden; aspect-ratio: var(--pf-game-ratio, 16 / 9); border: 1px solid #355a84; border-radius: 20px; background: #020508; box-shadow: 0 24px 70px rgba(3, 0, 7, .65), 0 0 0 5px rgba(212, 92, 255, .06); }
.pf-game-stage > iframe, .pf-game-stage > object, .pf-game-stage > embed, .pf-game-stage > div, .pf-game-stage #playframe { width: 100% !important; height: 100% !important; min-height: 100%; border: 0 !important; }
.pf-game-stage:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; border: 0; border-radius: 0; }
.pf-game-stage:fullscreen > iframe, .pf-game-stage:fullscreen > object, .pf-game-stage:fullscreen > embed, .pf-game-stage:fullscreen > div { width: 100% !important; height: 100% !important; }
.pf-game-empty { height: 100%; display: grid; place-items: center; margin: 0; padding: 24px; color: var(--pf-muted); text-align: center; }
.pf-game-details { max-width: 850px; margin: 28px auto 0; }
.pf-game-details h2 { margin: 0 0 10px; font-size: 1.25rem; }
.pf-game-details p { margin: 0; color: var(--pf-muted); line-height: 1.7; }

@media (max-width: 1180px) {
  .pf-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .pf-header__random span { display: none; }
  .pf-header__random { width: 44px; justify-content: center; padding: 0; }
  .pf-nav { display: none; position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); padding: 15px; border: 1px solid var(--pf-line); border-radius: 16px; background: var(--pf-surface); box-shadow: var(--pf-shadow); }
  .pf-nav.is-open { display: block; }
  .pf-nav ul { align-items: stretch; flex-direction: column; gap: 3px; }
  .pf-nav a { display: block; padding: 10px; }
  .pf-menu-toggle { display: grid; margin-left: auto; }
  .pf-feature { flex-basis: calc((100% - 14px) / 2); }
  .pf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root { --pf-rail-width: 68px; --pf-rail-open: 190px; }
  body { margin-left: 0; width: auto; padding-left: 0; }
  .pf-rail { display: none; }
  .pf-actions { display: flex; min-height: 0; margin-left: auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .pf-actions__group, .pf-actions__sep { display: none; }
  .pf-action--primary { min-height: 40px; width: 44px; padding: 0; border-radius: 12px; }
  body.admin-bar .pf-header { top: 46px; }
  .pf-wrap { width: min(calc(100% - 22px), var(--pf-width)); }
  .pf-header__inner { min-height: 66px; gap: 9px; }
  .pf-brand__logo { width: 150px; max-height: 50px; }
  .pf-rail { padding: 10px 6px; }
  .pf-rail__link { min-height: 56px; padding: 8px; }
  .pf-rail__link svg { width: 28px; height: 28px; }
  .pf-rail__label { font-size: .78rem; }
  .pf-main { padding-top: 12px; }
  .pf-hero-shell { margin-inline: 18px; }
  .pf-feature { flex-basis: 88%; }
  .pf-hero-shell::before,
  .pf-hero-shell::after { width: 82px; }
  .pf-hero-arrow { width: 48px; height: 48px; }
  .pf-hero-arrow--prev { left: -27px; }
  .pf-hero-arrow--next { right: -27px; }
  .pf-categories { align-items: flex-start; flex-direction: column; gap: 8px; padding: 14px; }
  .pf-categories ul { width: 100%; }
  .pf-section { margin-top: 40px; }
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .pf-grid--recent { display: flex; overflow-x: auto; padding-bottom: 6px; }
  .pf-grid--recent .pf-card { flex: 0 0 44%; }
  .pf-random { grid-template-columns: 1fr; gap: 18px; margin-top: 88px; padding: 24px; }
  .pf-random > div { grid-row: 2; }
  .pf-random__mascot { grid-row: 1; width: 108%; margin: 0 -4% -48px; transform: translateY(-62px); }
  .pf-random a { grid-row: 3; }
  .pf-game-main { padding-top: 14px; }
  .pf-game-page { width: min(calc(100% - 18px), 1280px); }
  .pf-game-toolbar { gap: 9px; }
  .pf-game-back { width: 44px; flex: 0 0 44px; padding: 0; }
  .pf-game-back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pf-game-title { font-size: 1rem; }
  .pf-game-stage { min-height: 55vh; aspect-ratio: auto !important; border-radius: 14px; }
}
@media (max-width: 420px) {
  .pf-brand__logo { width: 104px; }
  .pf-action { width: 32px; }
  .pf-action--primary { width: 44px; }
  .pf-card__body h3 { font-size: .87rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Immersive game page */
.pf-game-main { padding: 18px 0 72px; background: radial-gradient(circle at 50% 0, rgba(195,55,255,.09), transparent 38%); }
.pf-game-page { width:min(calc(100% - 44px),1460px); margin-inline:auto; }
.pf-game-breadcrumb { min-height: 50px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 8px 16px; overflow: hidden; border: 1px solid var(--pf-line); border-radius: 14px; background: linear-gradient(100deg,#0a1827,#102339 55%,#0a1827); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); color: var(--pf-muted); font-size: .8rem; font-weight: 800; }
.pf-game-breadcrumb a { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; color: #dfeeff; }
.pf-game-breadcrumb a:hover { color: var(--pf-accent); }
.pf-game-breadcrumb svg { width: 17px; height: 17px; color: var(--pf-accent); }
.pf-game-breadcrumb__separator { color: #46668b; }
.pf-game-breadcrumb__current { min-width: 0; overflow: hidden; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.pf-game-layout { display: grid; grid-template-columns: 174px minmax(0,1fr) 174px; gap: 10px; align-items: stretch; }
.pf-game-center { min-width: 0; display: flex; flex-direction: column; }
.pf-game-stage { aspect-ratio: 16 / 9; max-height: calc(100vh - 190px); border-radius: 18px 18px 0 0; }
.pf-game-stage > iframe,.pf-game-stage #playframe { display: block; object-fit: contain; }
.pf-game-embed > iframe,.pf-game-embed > object,.pf-game-embed > embed { display:block; width:100%; height:100%; border:0; }
.pf-game-launch { position:relative; isolation:isolate; display:grid; place-items:center; overflow:hidden; background:#04090e; }
.pf-game-launch__image { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; }
.pf-game-launch__shade { position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,rgba(5,2,8,.18),rgba(5,2,8,.7)); }
.pf-game-launch__button { min-width:156px; min-height:54px; display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:0 24px; border:1px solid rgba(255,255,255,.38); border-radius:999px; background:var(--pf-accent); box-shadow:0 14px 36px rgba(0,0,0,.5),0 0 28px rgba(212,92,255,.28); color:var(--pf-accent-ink); font:inherit; font-size:1rem; font-weight:950; cursor:pointer; touch-action:manipulation; transition:transform .18s ease,filter .18s ease; }
.pf-game-launch__button:hover,.pf-game-launch__button:focus-visible { filter:brightness(1.08); transform:translateY(-2px) scale(1.02); }
.pf-game-launch__button:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.pf-game-launch__icon { width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;border-left:13px solid currentColor; }
.pf-game-loading { position:absolute; z-index:3; left:50%; top:50%; margin:0; padding:10px 14px; border-radius:999px; background:rgba(8,3,12,.84); color:#fff; font-size:.82rem; font-weight:850; transform:translate(-50%,-50%); }
.pf-game-stage[aria-busy="true"] .pf-game-loading::before { content:""; width:14px; height:14px; display:inline-block; margin-right:8px; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; vertical-align:-3px; animation:pf-tool-spin .65s linear infinite; }
.pf-game-toolbar { min-height: 58px; gap: 12px; margin: 0; padding: 7px 10px; border: 1px solid var(--pf-line); border-top: 0; border-radius: 0 0 16px 16px; background: #091421; }
.pf-game-tools { min-width:0; flex:1 1 auto; display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.pf-game-reactions { display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.pf-vote-pill { height:40px; display:flex; align-items:stretch; overflow:hidden; border:1px solid var(--pf-line); border-radius:12px; background:#112133; }
.pf-reaction { height:38px; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:0 13px; border:0; background:transparent; color:#f2f8ff; font-size:.75rem; font-weight:850; cursor:pointer; }
.pf-reaction--like { min-width:72px; border-right:1px solid var(--pf-line); }
.pf-reaction--dislike { width:46px; padding:0; }
.pf-vote-icon { width:19px; height:19px; display:block; background:currentColor; -webkit-mask:url('assets/images/social.webp') center/contain no-repeat; mask:url('assets/images/social.webp') center/contain no-repeat; }
.pf-reaction--like .pf-vote-icon { transform:rotate(180deg); }
.pf-reaction:hover,.pf-reaction:focus-visible,.pf-reaction[aria-pressed="true"] { background:#173250; color:var(--pf-accent); }
.pf-reaction:disabled { cursor:not-allowed; opacity:.42; }
.pf-reaction:disabled[aria-pressed="true"] { background:#173250; color:var(--pf-accent); opacity:1; }
.pf-reaction:focus-visible { outline:2px solid var(--pf-accent); outline-offset:-3px; }
.pf-rating { height:40px; display:flex; align-items:center; gap:1px; padding:0 3px; white-space:nowrap; }
.pf-rating button { position:relative; width:27px; height:40px; padding:0; border:0; border-radius:6px; background:transparent; cursor:pointer; transform-origin:center; animation:pf-rating-pop 1.4s cubic-bezier(.34,1.56,.64,1) both; }
.pf-rating button > svg,.pf-star-fill svg { position:absolute; left:2px; top:8px; width:23px; height:23px; stroke-linejoin:round; }
.pf-star-empty { fill:#151e29; stroke:#718398; stroke-width:1.5; }
.pf-star-fill { position:absolute; inset:0 auto 0 0; width:var(--pf-star-fill,0%); overflow:hidden; pointer-events:none; transition:width .12s ease; }
.pf-star-fill svg { fill:#ffc708; stroke:#ffc708; stroke-width:.8; }
.pf-rating button:nth-child(1) { animation-delay:.1s; }
.pf-rating button:nth-child(2) { animation-delay:.34s; }
.pf-rating button:nth-child(3) { animation-delay:.58s; }
.pf-rating button:nth-child(4) { animation-delay:.82s; }
.pf-rating button:nth-child(5) { animation-delay:1.06s; }
.pf-rating button:hover,.pf-rating button:focus-visible { transform:scale(1.1); }
.pf-rating button.is-popping { animation:pf-rating-click .48s var(--pf-star-delay,0ms) cubic-bezier(.34,1.56,.64,1) both; }
.pf-rating button:focus-visible { outline:2px solid var(--pf-accent); outline-offset:-1px; }
.pf-rating > span[data-pf-rating-average] { min-width:24px; margin-left:5px; color:#fff; font-size:.86rem; font-weight:750; line-height:1; text-align:left; }
@keyframes pf-rating-pop { 0%,12% { opacity:0; transform:scale(0); } 48% { opacity:1; transform:scale(1.2); } 72%,100% { opacity:1; transform:scale(1); } }
@keyframes pf-rating-click { 0% { transform:scale(1); } 45% { color:#fff0a5; transform:scale(1.38) rotate(-7deg); } 75% { transform:scale(.92) rotate(3deg); } 100% { transform:scale(1) rotate(0); } }
.pf-game-tool[data-pf-favorite] { order:1; }
.pf-game-tool[data-pf-panel="mobile"] { order:2; }
.pf-game-tool[href^="mailto:"] { order:3; }
.pf-game-tool[data-pf-panel="controls"] { order:4; }
.pf-game-tool[data-pf-reload] { order:5; }
.pf-game-tool[data-pf-fullscreen] { order:6; }
.pf-game-tool { position:relative; width:44px; height:44px; display:grid; place-items:center; padding:0; border:1px solid var(--pf-line); border-radius:12px; background:#112133; color:#eaf4ff; cursor:pointer; transition:background .18s ease,border-color .18s ease,color .18s ease; }
.pf-game-tool:hover,.pf-game-tool:focus-visible,.pf-game-tool[aria-pressed="true"] { border-color:var(--pf-accent); background:#173250; color:var(--pf-accent); }
.pf-game-tool[data-pf-favorite][aria-pressed="true"] svg { fill:currentColor; }
.pf-game-tool svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.pf-game-tool::after { content:attr(data-label); position:absolute; z-index:5; left:50%; bottom:calc(100% + 8px); padding:5px 8px; border-radius:7px; background:#03070c; color:#fff; font-size:.68rem; font-weight:800; white-space:nowrap; opacity:0; pointer-events:none; transform:translate(-50%,4px); transition:opacity .15s ease,transform .15s ease; }
.pf-game-tool:hover::after,.pf-game-tool:focus-visible::after { opacity:1; transform:translate(-50%,0); }
.pf-game-tool.is-loading svg { animation:pf-tool-spin .65s linear infinite; }
@keyframes pf-tool-spin { to { transform:rotate(360deg); } }
.pf-game-center { position:relative; }
.pf-game-panel { position:absolute; z-index:8; left:var(--pf-panel-left,50%); bottom:68px; width:min(320px,calc(100% - 24px)); padding:22px; border:1px solid var(--pf-accent); border-radius:18px; background:#091421; box-shadow:0 20px 60px rgba(0,0,0,.65); text-align:center; transform:translateX(-50%); }
.pf-game-panel::after { content:""; position:absolute; left:var(--pf-panel-arrow,50%); top:100%; width:14px; height:14px; border-right:1px solid var(--pf-accent); border-bottom:1px solid var(--pf-accent); background:#091421; transform:translate(-50%,-7px) rotate(45deg); }
.pf-game-panel[hidden] { display:none; }
.pf-game-panel h2 { margin:0 28px 6px; font-size:1.15rem; }
.pf-game-panel p { margin:0; color:var(--pf-muted); line-height:1.5; }
.pf-game-panel img { width:200px; height:200px; display:block; margin:16px auto 0; padding:8px; border-radius:12px; background:#fff; }
.pf-local-qr { width:216px; min-height:216px; display:grid; place-items:center; margin:16px auto 0; padding:8px; border-radius:12px; background:#fff; }
.pf-local-qr img { width:200px; height:200px; margin:0; padding:0; border-radius:0; image-rendering:pixelated; }

.pf-published-game { margin-top:28px; padding:28px; border:1px solid var(--pf-line); border-radius:16px; background:var(--pf-surface); box-shadow:var(--pf-shadow); }
.pf-published-game__header { display:flex; align-items:center; justify-content:flex-start; gap:14px; }
.pf-published-game__header h2 { margin:0; color:var(--pf-white); font-size:clamp(1.55rem,2.7vw,2.15rem); line-height:1.15; }
.pf-game-share { min-height:42px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:0 15px; border:1px solid var(--pf-line); border-radius:999px; background:#112133; color:var(--pf-white); font-weight:850; cursor:pointer; transition:background .18s ease,border-color .18s ease,transform .18s ease; }
.pf-game-share:hover,.pf-game-share:focus-visible { border-color:var(--pf-accent); background:#173250; color:var(--pf-accent); transform:translateY(-1px); }
.pf-game-share svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.pf-published-game__content { margin-top:18px; }
.pf-published-game__meta { max-width:980px; margin:0; }
.pf-published-game__meta > div { display:grid; grid-template-columns:130px minmax(0,1fr); align-items:center; min-height:36px; }
.pf-published-game__meta dt { padding-right:16px; color:#9aaabc; font-size:.93rem; }
.pf-published-game__meta dd { min-width:0; margin:0; color:var(--pf-white); font-size:.98rem; font-weight:800; }
.pf-published-game__meta > div:first-child dd { color:var(--pf-accent); }
.pf-published-game__rating-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.pf-published-game__rating-row strong { color:var(--pf-accent); font-size:1.08rem; font-weight:900; }
.pf-published-game__rating-row > span { color:var(--pf-muted); font-size:.85rem; font-weight:750; }
.pf-published-game__rating-row small { color:var(--pf-muted); font-size:.72rem; font-weight:700; }
.pf-published-game__tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.pf-published-game__tags a { min-height:38px; display:inline-flex; align-items:center; gap:8px; padding:0 14px; border:1px solid rgba(212,92,255,.12); border-radius:9px; background:#222b35; color:#a8b8cb; font-size:.9rem; font-weight:750; transition:border-color .18s ease,background .18s ease,color .18s ease; }
.pf-published-game__tags a:hover,.pf-published-game__tags a:focus-visible { border-color:var(--pf-accent); background:#243345; color:var(--pf-white); }
.pf-published-game__tags strong { color:#68aeff; font-weight:900; }
.pf-game-about-section { margin-top:18px; padding:clamp(22px,3vw,30px); border:1px solid var(--pf-line); border-radius:16px; background:var(--pf-surface); box-shadow:var(--pf-shadow); color:#c7d5e5; font-size:1rem; line-height:1.72; }
.pf-game-about-section :is(h2,h3,h4,h5,h6) { margin:26px 0 12px; color:var(--pf-white); font-weight:800; line-height:1.2; letter-spacing:-.025em; }
.pf-game-about-section h2 { font-size:clamp(1.55rem,2.3vw,1.9rem); }
.pf-game-about-section h3 { font-size:clamp(1.3rem,2vw,1.55rem); }
.pf-game-about-section :is(h4,h5,h6) { font-size:clamp(1.08rem,1.7vw,1.25rem); }
.pf-game-about-section > :first-child { margin-top:0; }
.pf-game-about-section p { margin:0 0 16px; color:#c7d5e5; line-height:1.72; }
.pf-game-about-section :is(ul,ol) { margin:0 0 18px; padding-left:1.4rem; color:#c7d5e5; }
.pf-game-about-section li { margin-bottom:7px; padding-left:3px; }
.pf-game-about-section li::marker { color:var(--pf-accent); }
.pf-game-about-section strong { color:var(--pf-white); font-weight:800; }
.pf-game-about-section a { color:var(--pf-accent); font-weight:700; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; }
.pf-game-about-section a:hover,.pf-game-about-section a:focus-visible { color:var(--pf-white); }
.pf-game-about__gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:20px; }
.pf-game-about__gallery figure { margin:0; overflow:hidden; border:1px solid var(--pf-line); border-radius:14px; background:var(--pf-bg); }
.pf-game-about__gallery img { width:100%; aspect-ratio:16/9; object-fit:cover; }
.pf-game-about__videos { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:20px; }
.pf-game-about__video { min-width:0; overflow:hidden; aspect-ratio:16/9; display:grid; place-items:center; border:1px solid var(--pf-line); border-radius:14px; background:#04090e; }
.pf-game-about__video iframe,.pf-game-about__video video { width:100%; height:100%; border:0; object-fit:contain; }
.pf-game-about__video-link { color:var(--pf-accent); font-weight:850; }
.pf-game-about-section > :last-child { margin-bottom:0; }
@media (max-width:760px) { .pf-published-game,.pf-game-about-section { padding:20px; } .pf-published-game__meta > div { grid-template-columns:112px minmax(0,1fr); } .pf-game-about__gallery,.pf-game-about__videos { grid-template-columns:1fr; } }
@media (max-width:480px) { .pf-published-game { padding:18px 16px; } .pf-published-game__header { align-items:center; flex-wrap:wrap; } .pf-published-game__meta > div { grid-template-columns:1fr; gap:3px; padding:7px 0; } .pf-published-game__meta dt { font-size:.78rem; } .pf-game-share { min-width:104px; } .pf-published-game__tags a { min-height:36px; padding-inline:11px; font-size:.82rem; } }
.pf-game-panel [data-pf-panel-close] { position:absolute; top:9px; right:9px; width:36px; height:36px; border:0; border-radius:9px; background:#142940; color:#fff; font-size:1.35rem; cursor:pointer; }
.pf-game-title { font-size: clamp(1rem,2vw,1.35rem); }
.pf-game-random { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border-radius: 12px; background: var(--pf-accent); color: var(--pf-accent-ink); font-size: .8rem; font-weight: 900; }
.pf-game-random svg { width: 18px; height: 18px; }
.pf-game-rail { display: grid; grid-template-rows: repeat(6,auto); align-content: start; gap: 8px; }
.pf-game-mini,.pf-game-tile { position: relative; width: 100%; min-height: 0; overflow: hidden; aspect-ratio: 16/10; border: 1px solid var(--pf-line); border-radius: 12px; background: var(--pf-surface); }
.pf-game-mini img,.pf-game-tile img { width: 100%; height: 100%; display: block; object-fit: cover; transition: filter .18s ease; }
.pf-game-mini span,.pf-game-tile span { position: absolute; inset: auto 0 0; padding: 18px 7px 6px; overflow: hidden; color: #fff; background: linear-gradient(transparent,rgba(8,2,13,.94)); font-size: .66rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.pf-game-mini:hover img,.pf-game-tile:hover img { filter: brightness(1.12); }
.pf-game-more { margin-top: 12px; }
.pf-game-more__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.pf-game-more__head h2 { margin: 0; font-size: clamp(1.35rem,3vw,2rem); }
.pf-game-more__head a { display: inline-flex; align-items: center; gap: 6px; color: var(--pf-accent); font-weight: 850; }
.pf-game-more__head svg { width: 18px; height: 18px; }
.pf-game-more__grid { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 10px; }
.pf-game-tile { aspect-ratio: 16/10; }
.pf-game-wide-cards { display: none; }
@media (min-width: 1280px) and (width < 1920px) {
  .pf-game-wide-cards { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
}
.pf-game-details { max-width: 900px; margin-top: 34px; padding: 24px; border: 1px solid var(--pf-line); border-radius: 18px; background: var(--pf-surface); }
@media (max-width:1180px) { .pf-game-layout { grid-template-columns: minmax(90px,125px) minmax(0,1fr) minmax(90px,125px); } .pf-game-more__grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width:1180px) { .pf-game-toolbar { gap:8px; padding-inline:8px; } .pf-game-tools { gap:6px; } .pf-game-tool { width:40px; height:40px; border-radius:11px; } .pf-game-reactions { gap:8px; } }
@media (max-width:880px) { .pf-game-layout { display:flex; flex-direction:column; } .pf-game-center { order:1; } .pf-game-rail { order:2; grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:none; } .pf-game-rail--right { display:none; } .pf-game-mini { aspect-ratio:1/1; } .pf-game-stage { min-height:0; max-height:none; aspect-ratio:16/9 !important; } .pf-game-random span { display:none; } .pf-game-random { width:44px; padding:0; justify-content:center; } }
@media (max-width:420px) { .pf-game-rail,.pf-game-more__grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:520px) { .pf-game-page { width:min(calc(100% - 22px),1460px); } .pf-game-breadcrumb { min-height:44px; padding-inline:12px; } .pf-game-breadcrumb a:first-child span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); } }
@media (max-width:700px) { .pf-game-toolbar { flex-wrap:wrap; } .pf-game-reactions { width:100%; justify-content:center; order:2; } .pf-game-tools { justify-content:flex-end; order:1; } }

.pf-random--top > div,.pf-random--top > a { z-index:5; }
.pf-random--top > a { grid-column:3; }
.pf-random--top .pf-random__mascot { position:absolute; z-index:4; top:-38px; right:190px; width:142px; height:174px; margin:0; }
.pf-random__trio { position:absolute; z-index:3; left:52%; top:50%; width:min(48vw,620px); height:190px; margin:0; pointer-events:none; transform:translate(-50%,-50%); }
.pf-random__trio picture { display:block; width:100%; height:100%; }
.pf-random__trio img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 15px 12px rgba(3,0,7,.74)); }
@media (max-width:880px) { .pf-random--top { padding-right:145px; } .pf-random--top .pf-random__mascot { display:none; } .pf-random__trio { left:auto; right:0; top:50%; width:185px; height:154px; transform:translateY(-50%); } }
@media (max-width:420px) { .pf-random--top { padding-right:112px; } .pf-random__trio { right:0; width:150px; } }
@media (max-width:880px) { .pf-random--top { display:block; min-height:126px; margin:20px 0 34px; padding:14px 126px 14px 16px; } .pf-random--top > div { min-height:48px; } .pf-random--top .pf-random__mascot { position:absolute; z-index:3; top:-34px; right:-8px; width:145px; height:174px; margin:0; transform:none; } .pf-random--top > a { width:max-content; min-height:42px; margin-top:8px; } }
@media (max-width:420px) { .pf-random--top { padding-right:104px; } .pf-random--top .pf-random__mascot { top:-24px; right:-14px; width:126px; height:160px; } .pf-random--top strong { font-size:1.02rem; } }

/* Phone portrait and landscape: keep only Random in the header.
   The full four-item navigation remains in the fixed bottom tab bar. */
@media (max-width:700px), (max-width:960px) and (orientation:landscape) {
  body { margin-left:0; width:auto; padding-left:0; }
  .pf-rail { display:none; }
  .pf-header__inner { min-height:66px; flex-wrap:nowrap; padding-block:0; }
  .pf-actions {
    position:static;
    width:auto;
    min-height:0;
    margin-left:auto;
    padding:0;
    overflow:visible;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  .pf-actions__group,
  .pf-actions__sep { display:none; }
  .pf-action--primary {
    min-height:44px;
    width:auto;
    padding-inline:16px;
    border:0;
    background:var(--pf-accent);
  }
}
@media (max-width:700px) {
  .pf-action--primary { width:44px; padding:0; }
}

/* Category archive */
.pf-main:has(.pf-cat-hero) { padding-top:22px; background:radial-gradient(700px 360px at 50% -180px,rgba(211,69,255,.14),transparent 70%); }
.pf-cat-hero { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:16px; min-height:124px; padding:17px 26px; overflow:hidden; border:1px solid #305784; border-radius:19px; background:linear-gradient(115deg,rgba(47,17,70,.98),rgba(29,10,44,.98) 58%,rgba(48,16,70,.94)); box-shadow:0 18px 46px rgba(2,0,8,.28),inset 0 1px 0 rgba(255,255,255,.05); }
.pf-cat-hero::before,.pf-cat-hero::after { content:""; position:absolute; z-index:0; border:1px solid rgba(210,91,255,.24); border-radius:999px; pointer-events:none; }
.pf-cat-hero::before { width:410px; height:410px; top:-295px; right:-82px; transform:rotate(-22deg); }
.pf-cat-hero::after { width:250px; height:250px; right:105px; bottom:-195px; }
.pf-cat-hero__icon,.pf-cat-hero__text,.pf-cat-hero__stats { position:relative; z-index:1; }
.pf-cat-hero__icon { width:58px; height:58px; display:grid; place-items:center; flex:0 0 auto; border:1px solid rgba(230,171,255,.4); border-radius:17px; background:linear-gradient(145deg,#376ba7,#1a3b61); color:#fff; box-shadow:0 12px 26px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.17); }
.pf-cat-hero__icon svg { width:29px; height:29px; }
.pf-cat-hero__text { min-width:0; }
.pf-cat-hero__title { margin:0; color:var(--pf-white); font-size:clamp(1.65rem,3vw,2.35rem); line-height:1; letter-spacing:-.05em; }
.pf-cat-hero__title span { color:var(--pf-accent); }
.pf-cat-hero__desc { max-width:920px; margin-top:6px; color:#b7c6d8; font-size:.84rem; line-height:1.45; }
.pf-cat-hero__desc p { margin:0; }
.pf-cat-hero__actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.pf-cat-hero__play,.pf-cat-hero__ghost { min-height:38px; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:0 13px; border-radius:10px; font-size:.75rem; font-weight:900; transition:transform .18s ease,background .18s ease,border-color .18s ease; }
.pf-cat-hero__play { background:var(--pf-accent); color:var(--pf-accent-ink); box-shadow:0 8px 18px rgba(197,67,255,.22); }
.pf-cat-hero__play:hover,.pf-cat-hero__play:focus-visible { transform:translateY(-2px); background:#87bfff; }
.pf-cat-hero__play svg { width:18px; height:18px; }
.pf-cat-hero__ghost { border:1px solid rgba(225,174,255,.34); background:rgba(26,9,41,.5); color:#eaf4ff; }
.pf-cat-hero__ghost:hover,.pf-cat-hero__ghost:focus-visible { border-color:var(--pf-accent); color:var(--pf-accent); }
.pf-cat-hero__stats { min-width:156px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0; padding:0; list-style:none; }
.pf-cat-hero__stats li { min-height:58px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:7px; border:1px solid rgba(223,158,255,.2); border-radius:13px; background:rgba(10,3,18,.25); text-align:center; }
.pf-cat-hero__stats strong { color:var(--pf-accent); font-size:.95rem; line-height:1.1; }
.pf-cat-hero__stats span { margin-top:3px; color:#b4c2d2; font-size:.59rem; font-weight:850; text-transform:uppercase; letter-spacing:.08em; }
.pf-cat-pills { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:18px; padding:12px; border:1px solid var(--pf-line); border-radius:16px; background:rgba(31,12,45,.78); }
.pf-cat-pills>a { min-height:36px; display:inline-flex; align-items:center; gap:7px; padding:0 12px; border:1px solid rgba(180,112,211,.28); border-radius:999px; background:#102236; color:#d8e5f4; font-size:.76rem; font-weight:800; transition:background .18s ease,border-color .18s ease,color .18s ease; }
.pf-cat-pills>a span { color:var(--pf-accent); font-size:.68rem; }
.pf-cat-pills>a:hover,.pf-cat-pills>a:focus-visible { border-color:var(--pf-accent); background:#152f4c; color:#fff; }
.pf-cat-grid { margin-top:32px; }
.pf-cat-grid .pf-grid { gap:14px; }
.pf-cat-grid .pf-card__media { border:1px solid rgba(145,70,177,.34); }
.pf-card.is-hidden { display:none; }
.pf-loadmore { min-width:172px; min-height:44px; display:block; margin:26px auto 0; padding:0 18px; border:1px solid var(--pf-accent); border-radius:12px; background:#122a46; color:#eaf4ff; font:inherit; font-size:.8rem; font-weight:900; cursor:pointer; }
.pf-loadmore:hover,.pf-loadmore:focus-visible { background:#163962; color:var(--pf-accent); }
#pf-games-list .pf-loadmore { width:100%; min-height:52px; margin-top:18px; border-color:transparent; border-radius:14px; background:linear-gradient(100deg,#3e91f0,#5ca8ff); color:#02101f; box-shadow:0 10px 24px rgba(196,66,255,.2); font-size:.88rem; letter-spacing:.01em; }
#pf-games-list .pf-loadmore:hover,#pf-games-list .pf-loadmore:focus-visible { background:linear-gradient(100deg,#59a6ff,#80bbff); color:#02101f; box-shadow:0 14px 28px rgba(214,92,255,.32); transform:translateY(-1px); }
#pf-games-list .pf-loadmore { display:flex; align-items:center; justify-content:center; gap:12px; cursor:pointer; font-weight:950; transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease; }
#pf-games-list .pf-loadmore[hidden] { display:none; }
#pf-games-list .pf-loadmore small { padding:4px 9px; border-radius:999px; background:rgba(25,2,31,.14); font-size:.7rem; font-weight:850; }
#pf-games-list .pf-loadmore:disabled { cursor:wait; opacity:.7; transform:none; }
#pf-games-list .pf-loadmore.is-loading { background:linear-gradient(90deg,#3e91f0,#80bbff,#3e91f0); background-size:200% 100%; animation:pf-loadmore-pulse 1.2s linear infinite; }
#pf-games-list .pf-loadmore-count { margin:18px 0 0; color:var(--pf-muted); text-align:center; font-size:.78rem; font-weight:800; }
@keyframes pf-loadmore-pulse { to { background-position:-200% 0; } }
.pf-cat-about,.pf-cat-seo { margin-top:28px; padding:28px 30px; border:1px solid var(--pf-line); border-radius:20px; background:linear-gradient(145deg,rgba(43,19,59,.92),rgba(24,9,36,.94)); box-shadow:var(--pf-shadow); }
.pf-cat-about h2,.pf-cat-seo h2 { margin:0 0 12px; color:var(--pf-white); font-size:clamp(1.45rem,2.6vw,2rem); letter-spacing:-.04em; }
.pf-cat-about__content { max-width:850px; color:#b7c6d8; line-height:1.75; }
.pf-cat-about__content p { margin:0; }
/* Learning-game editorial copy: shared by Memory, Math Quiz, and Typing. */
.pf-learning-copy { position:relative; overflow:hidden; padding:clamp(26px,4vw,48px); background:radial-gradient(circle at 92% 0,rgba(212,92,255,.14),transparent 34%),linear-gradient(145deg,rgba(48,21,65,.96),rgba(22,8,34,.98)); }
.pf-learning-copy::before { content:""; position:absolute; inset:0 0 auto; height:4px; background:linear-gradient(90deg,var(--pf-accent),var(--pf-orange),transparent 82%); }
.pf-learning-copy::after { content:""; position:absolute; z-index:0; right:-72px; top:-88px; width:220px; height:220px; border:1px solid rgba(212,92,255,.16); border-radius:50%; box-shadow:0 0 70px rgba(212,92,255,.08); pointer-events:none; }
.pf-learning-copy .pf-cat-about__content { position:relative; z-index:1; max-width:72ch; color:#c9d6e5; font-size:clamp(1rem,.96rem + .18vw,1.08rem); line-height:1.82; }
.pf-learning-copy .pf-cat-about__content > *:first-child { margin-top:0; }
.pf-learning-copy .pf-cat-about__content > *:last-child { margin-bottom:0; }
.pf-learning-copy .pf-cat-about__content p { margin:0 0 1.15em; }
.pf-learning-copy .pf-cat-about__content > p:first-child,.pf-learning-copy .pf-cat-about__content > p:nth-child(2) { color:#a8bace; font-size:.84rem; line-height:1.55; }
.pf-learning-copy .pf-cat-about__content > p:first-child strong,.pf-learning-copy .pf-cat-about__content > p:nth-child(2) strong { color:#e6f0fb; }
.pf-learning-copy .pf-cat-about__content h2,.pf-learning-copy .pf-cat-about__content h3 { max-width:26ch; color:var(--pf-white); line-height:1.18; text-wrap:balance; }
.pf-learning-copy .pf-cat-about__content h2 { position:relative; margin:1.65em 0 .7em; padding-left:18px; font-size:clamp(1.65rem,3vw,2.35rem); letter-spacing:-.035em; }
.pf-learning-copy .pf-cat-about__content h2::before { content:""; position:absolute; left:0; top:.12em; bottom:.08em; width:5px; border-radius:99px; background:linear-gradient(180deg,var(--pf-accent),var(--pf-orange)); box-shadow:0 0 14px rgba(212,92,255,.38); }
.pf-learning-copy .pf-cat-about__content h3 { margin:1.45em 0 .6em; font-size:clamp(1.2rem,2vw,1.48rem); }
.pf-learning-copy .pf-cat-about__content strong { color:#fff; font-weight:850; }
.pf-learning-copy .pf-cat-about__content a { color:#a4ceff; font-weight:750; text-underline-offset:3px; text-decoration-thickness:1px; }
.pf-learning-copy .pf-cat-about__content a:hover { color:#fff; }
.pf-learning-copy .pf-cat-about__content a:focus-visible { outline:3px solid var(--pf-orange); outline-offset:3px; border-radius:3px; }
.pf-learning-copy .pf-cat-about__content ul,.pf-learning-copy .pf-cat-about__content ol { margin:1.15em 0 1.4em; padding-left:1.35em; }
.pf-learning-copy .pf-cat-about__content li { margin:.5em 0; padding-left:.25em; }
.pf-learning-copy .pf-cat-about__content li::marker { color:var(--pf-accent); font-weight:900; }
.pf-learning-copy .pf-cat-about__content blockquote { margin:1.6em 0; padding:18px 20px; border-left:4px solid var(--pf-accent); border-radius:0 14px 14px 0; background:rgba(212,92,255,.08); color:#e7f0fa; }
.pf-learning-copy .pf-cat-about__content blockquote p:last-child { margin-bottom:0; }
.pf-learning-copy .pf-cat-about__content hr { height:1px; margin:2em 0; border:0; background:linear-gradient(90deg,rgba(212,92,255,.55),transparent); }
.pf-cat-seo { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.pf-cat-seo h2 { grid-column:1 / -1; }
.pf-cat-seo details { overflow:hidden; border:1px solid rgba(169,91,206,.34); border-radius:13px; background:rgba(16,5,26,.38); }
.pf-cat-seo summary { min-height:54px; display:flex; align-items:center; padding:0 16px; color:#eaf4ff; cursor:pointer; font-size:.87rem; font-weight:850; list-style:none; }
.pf-cat-seo summary::-webkit-details-marker { display:none; }
.pf-cat-seo summary::after { content:"+"; margin-left:auto; color:var(--pf-accent); font-size:1.4rem; font-weight:500; }
.pf-cat-seo details[open] summary { border-bottom:1px solid rgba(169,91,206,.26); }
.pf-cat-seo details[open] summary::after { content:"−"; }
.pf-cat-seo details p { margin:0; padding:14px 16px 17px; color:#b7c6d8; font-size:.87rem; line-height:1.65; }
@media (max-width:1000px) { .pf-cat-hero { grid-template-columns:auto minmax(0,1fr); }.pf-cat-hero__stats { grid-column:2; justify-self:start; }.pf-catlist-sort { width:100%; margin-left:0; padding:6px 0 0; }.pf-cat-seo { grid-template-columns:1fr; } }
@media (max-width:620px) { .pf-main:has(.pf-cat-hero) { padding-top:14px; }.pf-cat-hero { grid-template-columns:1fr; gap:12px; min-height:0; padding:18px; border-radius:16px; }.pf-cat-hero__icon { width:52px; height:52px; border-radius:15px; }.pf-cat-hero__icon svg { width:26px; height:26px; }.pf-cat-hero__stats { grid-column:auto; width:100%; }.pf-cat-hero__stats li { min-height:54px; }.pf-cat-pills { flex-wrap:nowrap; overflow-x:auto; padding:10px; }.pf-cat-pills>a { flex:0 0 auto; }.pf-cat-grid { margin-top:26px; }.pf-cat-about,.pf-cat-seo { margin-top:20px; padding:22px 18px; border-radius:16px; } }
@media (max-width:620px) { .pf-learning-copy .pf-cat-about__content { line-height:1.72; }.pf-learning-copy .pf-cat-about__content h2 { padding-left:14px; }.pf-learning-copy::after { display:none; } }

/* Keep the full layout aligned with the expanding category rail. */
@media (min-width:701px) {
  body { transition: margin-left .22s ease, width .22s ease; }
  body:has(.pf-rail:hover),
  body:has(.pf-rail:focus-within),
  body:has(.pf-rail.is-expanded) {
    margin-left: var(--pf-rail-open);
    width: calc(100% - var(--pf-rail-open));
  }
}
@media (prefers-reduced-motion:reduce) {
  body, .pf-rail, .pf-rail::after { transition: none; }
}

/* 404 only — arcade cabinet, scoped via .pf-404 so no other page is affected. */
.pf-404 { padding: clamp(24px, 4vw, 56px) 0 8px; }
.pf-404__cabinet { position: relative; overflow: hidden; max-width: 760px; margin-inline: auto; padding: clamp(28px, 4vw, 52px) clamp(20px, 4vw, 52px); border: 1px solid rgba(212, 92, 255, .42); border-radius: 24px; background: linear-gradient(160deg, #101f31 0%, #081626 60%, #0a1c30 100%); box-shadow: 0 24px 70px rgba(3, 0, 7, .6), 0 0 0 5px rgba(212, 92, 255, .06), 0 0 44px rgba(212, 92, 255, .14); text-align: center; isolation: isolate; }
.pf-404__cabinet::before { content: ""; position: absolute; inset: 0; z-index: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 4px); opacity: .35; pointer-events: none; }
.pf-404__cabinet::after { content: ""; position: absolute; inset: auto -20% -120px 30%; z-index: 0; height: 260px; background: radial-gradient(ellipse, rgba(212, 92, 255, .3), transparent 68%); pointer-events: none; }
.pf-404__cabinet > * { position: relative; z-index: 1; }
.pf-404__eyebrow { margin: 0; color: var(--pf-accent); font-size: .72rem; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.pf-404__score { margin: 6px 0 0; font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: clamp(4rem, 12vw, 7rem); font-weight: 900; line-height: 1; letter-spacing: .02em; }
.pf-404__score span { color: #fff; text-shadow: 0 0 12px rgba(212, 92, 255, .9), 0 0 42px rgba(212, 92, 255, .45), 3px 3px 0 rgba(167, 44, 219, .8); }
.pf-404 h1 { margin: 10px 0 0; color: var(--pf-white); font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
.pf-404__text { max-width: 52ch; margin: 12px auto 0; color: var(--pf-muted); font-size: .95rem; line-height: 1.65; }
.pf-404__search { display: flex; gap: 10px; max-width: 560px; margin: 22px auto 0; padding: 6px; border: 1px solid var(--pf-line); border-radius: 16px; background: rgba(10, 4, 17, .72); }
.pf-404__search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--pf-white); font: inherit; font-size: .92rem; }
.pf-404__search input::placeholder { color: var(--pf-muted); }
.pf-404__search button { min-height: 48px; display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--pf-accent); color: var(--pf-accent-ink); font: inherit; font-size: .88rem; font-weight: 900; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.pf-404__search button svg { width: 18px; height: 18px; }
.pf-404__search button:hover, .pf-404__search button:focus-visible { background: #87bfff; transform: translateY(-1px); }
.pf-404__cabinet:has(.pf-404__search input:focus-visible) { border-color: var(--pf-accent); }
.pf-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.pf-404__btn { min-height: 48px; display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; border-radius: 13px; font-size: .86rem; font-weight: 900; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.pf-404__btn svg { width: 18px; height: 18px; }
.pf-404__btn--primary { background: var(--pf-accent); color: var(--pf-accent-ink); box-shadow: 0 10px 26px rgba(212, 92, 255, .28); }
.pf-404__btn--primary:hover, .pf-404__btn--primary:focus-visible { background: #87bfff; transform: translateY(-2px); }
.pf-404__btn--ghost { border: 1px solid rgba(225, 174, 255, .4); background: rgba(26, 9, 41, .6); color: #eaf4ff; }
.pf-404__btn--ghost:hover, .pf-404__btn--ghost:focus-visible { border-color: var(--pf-accent); color: var(--pf-accent); transform: translateY(-2px); }
.pf-404__tags-label { margin: 20px 0 0; color: var(--pf-muted); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pf-404__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.pf-404__tags a { min-height: 38px; display: inline-flex; align-items: center; padding: 0 15px; border: 1px solid var(--pf-line); border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--pf-white); font-size: .82rem; font-weight: 800; }
.pf-404__tags a:hover, .pf-404__tags a:focus-visible { border-color: var(--pf-accent); color: var(--pf-accent); transform: translateY(-1px); }
.pf-wrap:has(> .pf-404) .pf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) {
  .pf-404__cabinet { border-radius: 18px; }
  .pf-404__search { flex-direction: column; padding: 8px; }
  .pf-404__search input { min-height: 46px; padding: 0 12px; border: 1px solid var(--pf-line); border-radius: 10px; background: rgba(255, 255, 255, .04); }
  .pf-404__search button { width: 100%; justify-content: center; }
  .pf-404__btn { flex: 1 1 100%; justify-content: center; }
  .pf-wrap:has(> .pf-404) .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Blog (/blog/) — 8-per-row tiles. Scoped so game grids are unaffected. */
.pf-journal-eyebrow { margin: 0 0 8px; color: var(--pf-orange); font-size: .7rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.pf-post-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.pf-post-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid transparent; border-radius: var(--pf-radius-md); background: transparent; transition: transform .18s ease, border-color .18s ease; }
.pf-post-card:hover { border-color: var(--pf-accent); transform: translateY(-3px); }
.pf-post-card__media { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--pf-radius-md); background: #1a2d42; box-shadow: 0 7px 20px rgba(5, 1, 10, .3); cursor: pointer; }
.pf-post-card__media:empty { display: none; }
.pf-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.pf-post-card:hover .pf-post-card__media img { transform: scale(1.05); }
.pf-post-card__body { display: flex; flex-direction: column; gap: 4px; padding: 8px 2px 0; }
.pf-article-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; color: var(--pf-muted); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pf-article-meta > span { white-space: nowrap; }
.pf-post-card__body h2 { margin: 0; font-size: .85rem; line-height: 1.4; letter-spacing: 0; overflow-wrap: anywhere; }
.pf-post-card__body h2 a { color: var(--pf-ink); text-decoration: none; cursor: pointer; }
.pf-post-card__body h2 a:hover { color: var(--pf-accent); }
.pf-post-card__body a:focus-visible, .pf-post-card__media:focus-visible { outline: 3px solid var(--pf-accent); outline-offset: 2px; border-radius: 8px; }

/* Single article (/blog/.../) — journal reading. Scoped to .pf-article. */
.pf-game-breadcrumb__current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-page-narrow { width: min(calc(100% - 44px), 880px); }
.pf-article { margin-top: 20px; padding: clamp(24px, 3.4vw, 48px); border: 1px solid var(--pf-line); border-radius: var(--pf-radius-lg); background: linear-gradient(175deg, rgba(52, 26, 72, .5), var(--pf-surface) 45%); box-shadow: var(--pf-shadow); }
.pf-article__head .pf-article-meta { font-size: .7rem; }
.pf-article__title { margin: 12px 0 0; color: var(--pf-white); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 600; line-height: 1.12; letter-spacing: 0; text-wrap: balance; overflow-wrap: anywhere; }
.pf-article__head, .pf-article__title { opacity: 1; visibility: visible; transform: none; transition: none; animation: none; content-visibility: visible; }
.pf-article__lede { max-width: 68ch; margin: 14px 0 0; color: var(--pf-muted); font-size: 1.08rem; line-height: 1.65; }
.pf-article__figure { margin: 26px 0 0; }
.pf-article__figure img { width: 100%; height: auto; display: block; border: 1px solid var(--pf-line); border-radius: var(--pf-radius-md); }
.pf-article__body { max-width: 68ch; margin-top: 26px; color: #dde8f5; font-size: 1.04rem; line-height: 1.7; overflow-wrap: anywhere; }
.pf-article__body > *:first-child { margin-top: 0; }
.pf-article__body p { margin: 0 0 1.2em; max-width: 68ch; }
.pf-article__body p strong, .pf-article__body li strong, .pf-article__body td strong { color: var(--pf-white); font-weight: 800; }
.pf-article__body h2, .pf-article__body h3 { margin: 2em 0 .7em; color: var(--pf-white); font-family: Newsreader, Georgia, 'Times New Roman', serif; font-weight: 600; line-height: 1.22; letter-spacing: -.015em; text-wrap: balance; max-inline-size: 28ch; }
.pf-article__body h2 { position: relative; padding-top: 14px; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.pf-article__body h2::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--pf-accent), var(--pf-orange)); box-shadow: 0 0 14px rgba(212, 92, 255, .55); }
.pf-article__body h3 { font-size: 1.28rem; color: #e4f1ff; }
.pf-article__body a { color: var(--pf-accent); text-underline-offset: 3px; }
.pf-article__body a:hover { color: #afd4ff; }
.pf-article__body a:focus-visible { outline: 3px solid var(--pf-accent); outline-offset: 2px; border-radius: 4px; }
.pf-article__body ul, .pf-article__body ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.pf-article__body li { margin-bottom: .55em; line-height: 1.65; }
.pf-article__body li::marker { color: var(--pf-accent); font-weight: 900; }
.pf-article__body blockquote { margin: 1.8em 0; padding: 18px 22px; border-left: 3px solid var(--pf-accent); border-radius: 0 var(--pf-radius-sm) var(--pf-radius-sm) 0; background: rgba(212, 92, 255, .09); color: var(--pf-white); font-family: Newsreader, Georgia, serif; font-size: 1.14rem; line-height: 1.6; }
.pf-article__body img { max-width: 100%; height: auto; border: 1px solid var(--pf-line); border-radius: var(--pf-radius-sm); }
.pf-article__body figure { margin: 1.8em 0; }
.pf-article__body figcaption { margin-top: 8px; color: var(--pf-muted); font-size: .82rem; line-height: 1.55; }
/* Article tables — FreeGamezo dark card table (ui-ux-pro-max: card #1B1B30 + accent hierarchy) */
.pf-article__body figure.wp-block-table, .pf-article__body .wp-block-table { margin: 1.8em 0; max-width: 100%; }
.pf-article__body .wp-block-table { overflow-x: auto; border: 1px solid rgba(212, 92, 255, .32); border-radius: 16px; background: linear-gradient(180deg, rgba(43, 20, 62, .92), rgba(25, 11, 40, .94)); box-shadow: var(--pf-shadow); }
.pf-article__body .wp-block-table table { min-width: 560px; }
.pf-article__body table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: .94rem; line-height: 1.6; }
.pf-article__body > table { margin: 1.8em 0; border: 1px solid rgba(212, 92, 255, .32); border-radius: 16px; background: linear-gradient(180deg, rgba(43, 20, 62, .92), rgba(25, 11, 40, .94)); box-shadow: var(--pf-shadow); overflow: hidden; }
.pf-article__body thead th { padding: 14px 18px; background: rgba(212, 92, 255, .16); color: var(--pf-white); font-size: .74rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; text-align: left; white-space: nowrap; border-bottom: 1px solid rgba(212, 92, 255, .35); }
.pf-article__body thead th:first-child { border-top-left-radius: 16px; }
.pf-article__body thead th:last-child { border-top-right-radius: 16px; }
.pf-article__body tbody td { padding: 13px 18px; color: #d4e1ef; vertical-align: top; border-bottom: 1px solid rgba(185, 170, 200, .14); }
.pf-article__body tbody tr:last-child td { border-bottom: 0; }
.pf-article__body tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .025); }
.pf-article__body tbody tr { transition: background .16s ease; }
.pf-article__body tbody tr:hover td { background: rgba(212, 92, 255, .1); }
.pf-article__body tbody td:first-child { color: var(--pf-white); font-weight: 800; white-space: nowrap; }
.pf-article__body tbody td:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--pf-accent); box-shadow: 0 0 10px rgba(212, 92, 255, .8); vertical-align: 1px; }
.pf-article__body table caption { padding: 12px 18px; color: var(--pf-muted); font-size: .8rem; text-align: left; caption-side: bottom; }
@media (max-width: 700px) {
  .pf-article__body { font-size: 1rem; line-height: 1.7; }
  .pf-article__body h2 { font-size: 1.45rem; }
  .pf-article__body thead th, .pf-article__body tbody td { padding: 11px 14px; }
  .pf-article__body tbody td:first-child { white-space: normal; }
}
.pf-article__foot { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--pf-line); }
.pf-article__back { min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border: 1px solid var(--pf-line); border-radius: 999px; color: var(--pf-white); font-size: .86rem; font-weight: 800; text-decoration: none; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.pf-article__back:hover { border-color: var(--pf-accent); background: rgba(212, 92, 255, .14); color: var(--pf-accent); }
.pf-article__back:focus-visible { outline: 3px solid var(--pf-accent); outline-offset: 2px; }
.pf-article__related { margin-top: 40px; }
.pf-article .pf-info-toc { margin: 26px 0 0; }
.pf-article__body h2[id], .pf-article__body h3[id] { scroll-margin-top: 96px; }
.pf-article-wrap--with-toc { width: min(calc(100% - 40px), 1200px); }
.pf-article-layout--with-toc { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 20px; }
.pf-article-layout--with-toc .pf-article { margin-top: 0; min-width: 0; }
.pf-article-sidebar { min-width: 0; }
.pf-article-toc { position: static; display: block; max-height: none; overflow: visible; margin: 0; padding: 20px; }
.pf-article-toc ol { grid-template-columns: 1fr; margin-top: 14px; }
.pf-article-toc li { font-size: .84rem; }
.pf-article-toc a { min-height: 0; padding: 6px 3px; }
.pf-article-toc .pf-info-toc__item--h3 { margin-left: 16px; }
.pf-article-toc .pf-info-toc__item--h3 a { color: #bdd5f0; font-weight: 700; }
.pf-article-sidebar__cta { display: grid; gap: 10px; margin-top: 14px; }
.pf-article-sidebar__cta .pf-cat-hero__play, .pf-article-sidebar__cta .pf-cat-hero__ghost { width: 100%; min-height: 44px; font-size: .82rem; }
@media (max-width: 1020px) {
  .pf-article-wrap--with-toc { width: min(calc(100% - 44px), 880px); }
  .pf-article-layout--with-toc { grid-template-columns: 1fr; }
  .pf-article-toc { position: static; max-height: none; }
  .pf-article-sidebar { position: static; }
  .pf-article-sidebar__cta { display: none; }
}
@media (max-width: 700px) { .pf-article { padding: 22px 18px; } .pf-page-narrow { width: min(calc(100% - 22px), 880px); } }
.pagination .nav-links, .pf-blog-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pagination .page-numbers { min-width: 40px; min-height: 40px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--pf-line); border-radius: 10px; color: var(--pf-white); font-size: .85rem; font-weight: 800; text-decoration: none; }
.pagination .page-numbers:hover { border-color: var(--pf-accent); color: var(--pf-accent); }
.pagination .page-numbers.current { border-color: var(--pf-accent); background: var(--pf-accent); color: var(--pf-accent-ink); }
@media (max-width: 1180px) { .pf-post-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .pf-post-card--featured { grid-template-columns: 1fr; } .pf-post-card--featured .pf-post-card__media { aspect-ratio: 16 / 9; min-height: 0; } }
@media (max-width: 880px) { .pf-post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .pf-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; } }
@media (prefers-reduced-motion: reduce) { .pf-post-card, .pf-post-card__media img { transition: none; } .pf-post-card:hover { transform: none; } }
.pf-discovery-intro {
	width: 100%;
	max-width: none;
	margin: 40px 0 0;
	padding: clamp(24px, 3vw, 40px);
	border: 1px solid var(--pf-line);
	border-radius: 22px;
	background: linear-gradient(145deg, rgba(66, 28, 91, 0.78), rgba(26, 12, 39, 0.92));
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.pf-discovery-intro h2,
.pf-discovery-intro h3 {
	color: var(--pf-text);
	line-height: 1.2;
}

.pf-discovery-intro h2 {
	margin: 0 0 18px;
	font-size: clamp(1.55rem, 2.6vw, 2.2rem);
}

.pf-discovery-intro h3 {
	margin: 24px 0 10px;
	font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.pf-discovery-intro p {
	margin: 0;
	max-width: none;
	color: var(--pf-muted);
	font-size: clamp(1rem, 1.2vw, 1.08rem);
	line-height: 1.75;
}

.pf-discovery-intro p + p {
	margin-top: 16px;
}

.pf-discovery-intro a {
	color: var(--pf-accent);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.pf-discovery-intro a:hover,
.pf-discovery-intro a:focus-visible {
	color: var(--pf-accent-2);
}

@media (max-width: 520px) {
	.pf-discovery-intro {
		margin-top: 28px;
		padding: 22px 18px;
		border-radius: 18px;
	}

	.pf-discovery-intro p {
		line-height: 1.68;
	}
}

