:root {
  --pf-primary: #50c878;
  --pf-secondary: #7cb342;
  --pf-accent: #daa520;
  --pf-accent-hover: #e0b422;
  --pf-bg: #0e1210;
  --pf-bg-elev: #161c14;
  --pf-header: #12180f;
  --pf-text: #f3f1ea;
  --pf-muted: #a8b0a4;
  --pf-line: rgba(218, 165, 32, 0.35);
  --pf-page-w: 1120px;
  --pf-header-h: 72px;
  --pf-font-sans: "Albert Sans", system-ui, sans-serif;
  --pf-font-serif: "Source Serif 4", Georgia, serif;
  --pf-btn-text: #12150f;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.PfBody {
  margin: 0;
  background: var(--pf-bg);
  color: var(--pf-text);
  font-family: var(--pf-font-serif);
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-x: clip;
  min-height: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pf-accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #f0d878; }

.PfSkip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pf-accent);
  color: var(--pf-btn-text);
  padding: 0.6rem 1rem;
  z-index: 10000;
}
.PfSkip:focus { left: 0.5rem; top: 0.5rem; }

.PfWrap {
  width: min(100% - 2.5rem, var(--pf-page-w));
  margin-inline: auto;
}

.PfHeader {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--pf-header-h);
  background: var(--pf-header);
  border-bottom: 1px solid var(--pf-line);
}
.PfHeader-inner {
  width: min(100% - 2rem, 1280px);
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 1rem;
}
.PfHeader-logo { display: inline-flex; align-items: center; line-height: 0; }
.PfHeader-logo svg { width: 180px; height: auto; }
.PfHeader-cta { justify-self: start; white-space: nowrap; }
.PfHeader-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
}
.PfHeader-link {
  color: var(--pf-text);
  text-decoration: none;
  font-family: var(--pf-font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
}
.PfHeader-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -0.25rem;
  height: 1px;
  background: var(--pf-accent);
  transition: right 0.25s ease;
}
.PfHeader-link:hover::after,
.PfHeader-link.is-active::after { right: 0; }
.PfHeader-link:hover { color: var(--pf-accent); }
.PfHeader-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--pf-line);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.PfHeader-burger span {
  display: block;
  width: 18px; height: 2px;
  margin: 4px auto;
  background: var(--pf-text);
}

.PfOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1100;
}
.PfDrawer {
  position: fixed;
  top: 0; right: 0;
  width: min(85vw, 400px);
  height: 100dvh;
  background: var(--pf-header);
  border-left: 1px solid var(--pf-line);
  z-index: 1200;
  padding: 1.25rem 1.5rem 2rem;
  overflow-y: auto;
}
.PfDrawer[hidden], .PfOverlay[hidden], .PfCookie[hidden] { display: none !important; }
.PfDrawer-close {
  width: 44px; height: 44px;
  border: 1px solid var(--pf-line);
  background: transparent;
  color: var(--pf-text);
  font-size: 1.6rem;
  cursor: pointer;
  margin-bottom: 1rem;
}
.PfDrawer-nav { display: flex; flex-direction: column; gap: 1rem; }
.PfDrawer-nav a {
  color: var(--pf-text);
  font-family: var(--pf-font-sans);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
}

.PfMain { padding-top: var(--pf-header-h); min-height: 60vh; }

.PfBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  font-family: var(--pf-font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.PfBtn--primary {
  background: var(--pf-accent);
  color: var(--pf-btn-text);
  border-color: var(--pf-accent);
}
.PfBtn--primary:hover {
  background: var(--pf-accent-hover);
  color: var(--pf-btn-text);
  border-color: var(--pf-accent-hover);
}
.PfBtn--ghost {
  background: transparent;
  color: var(--pf-text);
  border-color: var(--pf-line);
}
.PfBtn--ghost:hover {
  border-color: var(--pf-accent);
  color: var(--pf-accent);
}
.PfBtn--primary::before,
.PfBtn--primary::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-color: var(--pf-text);
  border-style: solid;
}
.PfBtn--primary::before {
  top: -3px; left: -3px;
  border-width: 1px 0 0 1px;
}
.PfBtn--primary::after {
  bottom: -3px; right: -3px;
  border-width: 0 1px 1px 0;
}
.PfBtn--primary:hover::before,
.PfBtn--primary:hover::after { opacity: 1; }

.PfHero {
  background:
    linear-gradient(180deg, rgba(18,24,15,0.2), rgba(14,18,16,0.92)),
    radial-gradient(ellipse at 70% 20%, rgba(80,200,120,0.12), transparent 55%),
    #0e1210;
  border-bottom: 1px solid var(--pf-line);
  padding: 2.5rem 0 3rem;
}
.PfHero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 26rem);
  gap: 2rem;
  align-items: stretch;
}
.PfHero-kicker {
  font-family: var(--pf-font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pf-accent);
  margin: 0 0 0.75rem;
}
.PfHero-title {
  font-family: var(--pf-font-sans);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.PfHero-lead {
  margin: 0 0 1.5rem;
  color: var(--pf-muted);
  max-width: 36rem;
}
.PfHero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.PfHeroCard {
  background: var(--pf-bg-elev);
  border: 1px solid var(--pf-line);
  display: grid;
  grid-template-rows: auto 1fr;
}
.PfHeroCard-still {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}
.PfHeroCard-body { padding: 1rem 1.1rem 1.25rem; }
.PfHeroCard-top {
  display: grid;
  grid-template-columns: 22% 1fr;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.85rem;
}
.PfHeroCard-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22%;
  border: 1px solid var(--pf-line);
}
.PfHeroCard-name {
  font-family: var(--pf-font-sans);
  font-weight: 700;
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}
.PfHeroCard-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--pf-muted);
  font-family: var(--pf-font-sans);
}

.PfSection { padding: 3rem 0; }
.PfSection--tint {
  background:
    linear-gradient(90deg, rgba(218,165,32,0.05), transparent 40%),
    var(--pf-bg-elev);
  border-block: 1px solid var(--pf-line);
}
.PfSection-title {
  font-family: var(--pf-font-sans);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
.PfSection-lead {
  margin: 0 0 1.5rem;
  color: var(--pf-muted);
  max-width: 40rem;
}

.PfBento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.PfBento-week {
  grid-column: span 6;
  border: 1px solid var(--pf-line);
  background: var(--pf-bg-elev);
  padding: 1.25rem 1.4rem;
}
.PfBento-week p { margin: 0.5rem 0 0; }
.PfBento-alt {
  grid-column: span 3;
}
.PfBento-random,
.PfBento-controls {
  grid-column: span 3;
  border: 1px solid var(--pf-line);
  background: var(--pf-bg);
  padding: 1.25rem;
}
.PfBento-faq { grid-column: span 6; }
.PfBento-read { grid-column: span 6; }

.PfGameCard {
  border: 1px solid var(--pf-line);
  background: var(--pf-bg);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.25s ease, transform 0.35s ease;
}
.PfGameCard:hover { border-color: var(--pf-accent); }
.PfGameCard.is-tilt {
  transform: rotate(-0.6deg);
  animation: pfTilt 0.55s ease forwards;
}
@keyframes pfTilt {
  to { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .PfGameCard.is-tilt { animation: none; transform: none; }
}
.PfGameCard-media {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}
.PfGameCard-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.PfGameCard-title {
  font-family: var(--pf-font-sans);
  font-size: 1.1rem;
  margin: 0;
}
.PfGameCard-text { margin: 0; color: var(--pf-muted); font-size: 0.95rem; }
.PfGameCard-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.PfKeys {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.PfKey {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--pf-line);
  font-family: var(--pf-font-sans);
  font-size: 0.78rem;
  color: var(--pf-text);
  background: #10160f;
}

.PfFaq { border: 1px solid var(--pf-line); }
.PfFaq-item + .PfFaq-item { border-top: 1px solid var(--pf-line); }
.PfFaq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--pf-text);
  font-family: var(--pf-font-sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
}
.PfFaq-a {
  padding: 0 1.1rem 1rem;
  color: var(--pf-muted);
  margin: 0;
}
.PfFaq-a[hidden] { display: none !important; }

.PfReadGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.PfReadCard {
  border: 1px solid var(--pf-line);
  background: var(--pf-bg-elev);
  padding: 1rem;
}
.PfReadCard h3 {
  font-family: var(--pf-font-sans);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}
.PfReadCard p { margin: 0 0 0.8rem; color: var(--pf-muted); font-size: 0.92rem; }

.PfCta {
  padding: 3.5rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(218,165,32,0.14), transparent 55%),
    var(--pf-bg);
  border-top: 1px solid var(--pf-line);
}
.PfCta h2 {
  font-family: var(--pf-font-sans);
  margin: 0 0 0.75rem;
}
.PfCta p { color: var(--pf-muted); margin: 0 0 1.25rem; }

.PfPage { padding: 2rem 0 3.5rem; }
.PfPage-title {
  font-family: var(--pf-font-sans);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 1rem;
}
.PfProse { max-width: 42rem; }
.PfProse h2 {
  font-family: var(--pf-font-sans);
  font-size: 1.25rem;
  margin: 1.8rem 0 0.6rem;
}
.PfProse p { margin: 0 0 1rem; color: #e4e2d8; }
.PfProse ul { padding-left: 1.2rem; color: #e4e2d8; }
.PfProse li { margin-bottom: 0.4rem; }
.PfCheck { list-style: none; padding: 0; }
.PfCheck li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
}
.PfCheck li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45rem;
  width: 0.7rem; height: 0.7rem;
  border: 1px solid var(--pf-accent);
}

.PfBreadcrumbs { margin-bottom: 1rem; }
.PfBreadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--pf-font-sans);
  font-size: 0.82rem;
  color: var(--pf-muted);
}
.PfBreadcrumbs-item:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--pf-line);
}
.PfBreadcrumbs-link { color: var(--pf-muted); text-decoration: none; }
.PfBreadcrumbs-link:hover { color: var(--pf-accent); }

.PfLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: 2rem;
  align-items: start;
}
.PfAside {
  border: 1px solid var(--pf-line);
  padding: 1rem;
  background: var(--pf-bg-elev);
  position: sticky;
  top: calc(var(--pf-header-h) + 1rem);
}
.PfAside h2 {
  font-family: var(--pf-font-sans);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}
.PfAside ul { list-style: none; padding: 0; margin: 0; }
.PfAside li { margin-bottom: 0.45rem; }
.PfAside a { color: var(--pf-text); text-decoration: none; font-family: var(--pf-font-sans); font-size: 0.9rem; }
.PfAside a:hover { color: var(--pf-accent); }

.PfPlayBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.PfPlayStage {
  border: 1px solid var(--pf-line);
  background: #000;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  max-height: min(80dvh, 900px);
}
.PfPlayStage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.PfContactCard {
  border: 1px solid var(--pf-line);
  padding: 1.5rem;
  background: var(--pf-bg-elev);
  max-width: 28rem;
}
.PfContactCard p { margin: 0 0 0.5rem; }
.PfContactCard a { font-family: var(--pf-font-sans); }

.PfPopular {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.PfPopular a {
  display: block;
  border: 1px solid var(--pf-line);
  padding: 1rem;
  text-decoration: none;
  color: var(--pf-text);
  background: var(--pf-bg-elev);
  font-family: var(--pf-font-sans);
}
.PfPopular a:hover { border-color: var(--pf-accent); color: var(--pf-accent); }

.PfRecords { display: grid; gap: 0.75rem; max-width: 32rem; }
.PfRecords-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--pf-line);
  padding: 0.85rem 1rem;
  font-family: var(--pf-font-sans);
}
.PfMuted { color: var(--pf-muted); }

.PfFooter {
  border-top: 1px solid var(--pf-line);
  padding: 1.5rem 0 2rem;
  background: var(--pf-header);
}
.PfFooter-inner {
  width: min(100% - 2.5rem, var(--pf-page-w));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.PfFooter-brand, .PfFooter-copy, .PfFooter-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--pf-muted);
  font-family: var(--pf-font-sans);
}
.PfFooter-note { flex-basis: 100%; }
.PfFooter-links { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.PfFooter-links a, .PfFooter-cookies {
  font-family: var(--pf-font-sans);
  font-size: 0.86rem;
  color: var(--pf-text);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.PfFooter-links a:hover, .PfFooter-cookies:hover { color: var(--pf-accent); }

.PfCookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1300;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #10160f;
  border-top: 1px solid var(--pf-line);
}
.PfCookie-text { margin: 0; max-width: 48rem; font-family: var(--pf-font-sans); font-size: 0.9rem; }
.PfCookie-actions { display: flex; gap: 0.5rem; }

.PfStartGrid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}
.PfStartCard {
  border: 1px solid var(--pf-line);
  padding: 1rem;
  background: var(--pf-bg-elev);
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
}
.PfStartCard img { width: 7rem; aspect-ratio: 16/9; object-fit: cover; }
.PfStartCard h2 { font-family: var(--pf-font-sans); font-size: 1.05rem; margin: 0 0 0.35rem; }
.PfStartCard p { margin: 0 0 0.6rem; color: var(--pf-muted); font-size: 0.92rem; }

.PfMapList { columns: 2; gap: 2rem; }
.PfMapList a { display: block; margin-bottom: 0.4rem; font-family: var(--pf-font-sans); }

@media (max-width: 1100px) {
  .PfHeader-nav { display: none; }
  .PfHeader-burger { display: inline-flex; flex-direction: column; justify-content: center; }
  .PfHeader-inner { grid-template-columns: auto 1fr auto; }
  .PfHeader-cta { justify-self: end; }
}

@media (max-width: 900px) {
  .PfHero-grid { grid-template-columns: 1fr; }
  .PfBento-alt, .PfBento-random, .PfBento-controls { grid-column: span 6; }
  .PfReadGrid { grid-template-columns: 1fr; }
  .PfLayout { grid-template-columns: 1fr; }
  .PfAside { position: static; }
  .PfMapList { columns: 1; }
  .PfHeader-logo svg { width: 120px; }
  .PfHeader-cta { font-size: 0.8rem; padding-inline: 0.8rem; }
}

@media (max-width: 560px) {
  .PfHero-actions .PfBtn, .PfGameCard-actions .PfBtn { width: 100%; }
  .PfStartCard { grid-template-columns: 1fr; }
  .PfStartCard img { width: 100%; }
  .PfCookie { flex-direction: column; align-items: stretch; }
}
