/* Games hub (artwork cut from the mockup lives in assets/img/hub/). */
.pgh-page { --pgh-ink:#1F3A2C; --pgh-green:#2E8B45; --pgh-dark:#1F6E3A; --pgh-pink:#E5457A; color: var(--pgh-ink); }

/* Hero: the picture holds the scenery; the words are live text */
.pgh-hero { position: relative; border-radius: 28px; overflow: hidden; min-height: clamp(330px, 28vw, 410px); display: flex; align-items: center;
  background: #EAF4DF var(--pgh-hero) 78% center / cover no-repeat; }
.pgh-hero-text { position: relative; width: min(46%, 560px); padding: 26px 0 26px clamp(70px, 9.5vw, 150px); }
.pgh-title { position: relative; margin: 0; font: 400 clamp(64px, 8.6vw, 130px)/1 'Kaushan Script','Brush Script MT','Segoe Script',cursive; color: #1B6B3F; text-shadow: 0 3px 0 rgba(255,255,255,.65); }
.pgh-title::before, .pgh-title::after { content: ""; position: absolute; width: 34px; height: 4px; border-radius: 3px; background: #EF6C9B; box-shadow: 8px 14px 0 #EF6C9B, 2px 28px 0 #EF6C9B; left: -44px; top: 18%; transform: rotate(-24deg); }
.pgh-title::after { left: auto; right: 0; top: 14%; transform: rotate(24deg) scaleX(-1); display: none; }
.pgh-tag { margin: 2px 0 12px; font: 600 clamp(20px, 2.2vw, 30px)/1.2 Georgia,'Times New Roman',serif; color: #1F4A33; letter-spacing: .02em; }
.pgh-copy { max-width: 440px; margin: 0 0 20px; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.5; color: #274635; }
.pgh-cta { display: inline-flex; align-items: center; gap: 10px; padding: 13px 34px; border-radius: 999px; background: linear-gradient(180deg,#F6679F,#E03A74); color: #fff !important; font-weight: 700; font-size: 18px; text-decoration: none !important; box-shadow: 0 6px 16px rgba(229,69,122,.35), inset 0 -3px 0 rgba(0,0,0,.12); transition: transform .15s; }
.pgh-cta:hover { transform: translateY(-2px); }
.pgh-cta svg { width: 22px; height: 22px; }

.pgh-heading { display: flex; align-items: center; gap: 18px; margin: 34px 0 20px; font: 700 clamp(20px, 2.2vw, 26px)/1.2 Georgia,'Times New Roman',serif; color: var(--pgh-dark); justify-content: center; }
.pgh-heading::before, .pgh-heading::after { content:""; flex: 1; max-width: 300px; height: 2px; background: linear-gradient(90deg, transparent, #A9CF99); }
.pgh-heading::after { background: linear-gradient(270deg, transparent, #A9CF99); }

/* Category tiles */
.pgh-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.pgh-cat { appearance: none; cursor: pointer; border: 3px solid rgba(255,255,255,.95); border-radius: 26px; padding: 12px 8px 18px; background: linear-gradient(165deg, var(--pgh-a), var(--pgh-b)); text-align: center; color: var(--pgh-ink); font: inherit; box-shadow: 0 6px 18px rgba(31,110,58,.12); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pgh-cat:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(31,110,58,.2); }
.pgh-cat[aria-pressed="true"] { outline: 3px solid var(--pgh-green); outline-offset: 2px; }
.pgh-cat img { width: 100%; max-width: 170px; height: auto; display: block; margin: 0 auto 2px; }
.pgh-cat strong { font: 700 clamp(16px, 1.35vw, 19px)/1.2 Georgia,'Times New Roman',serif; }
.pgh-cat span { font-size: 14px; color: #46604F; line-height: 1.3; }

.pgh-grid { display: grid; grid-template-columns: 1fr 370px; gap: 24px; margin-top: 30px; align-items: start; }
.pgh-featured, .pgh-box { background: linear-gradient(180deg,#FAFDF6,#F1F8EA); border-radius: 26px; padding: 18px 20px 22px; box-shadow: 0 6px 22px rgba(31,110,58,.1); border: 1px solid #E3EEDD; }
.pgh-box-title { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 700 clamp(22px, 2vw, 28px)/1.1 Georgia,'Times New Roman',serif; color: var(--pgh-dark); }
.pgh-box-title img { width: 38px; height: 38px; object-fit: contain; flex: none; }
.pgh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.pgh-card { background: #fff; border: 1px solid #E6EEE1; border-radius: 18px; padding: 8px 8px 16px; text-align: center; box-shadow: 0 3px 10px rgba(31,110,58,.08); display: flex; flex-direction: column; }
.pgh-card[hidden] { display: none; }
.pgh-card-art { border-radius: 12px; overflow: hidden; margin-bottom: 12px; aspect-ratio: 176 / 137; }
.pgh-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgh-card-art--icon { display: flex; align-items: center; justify-content: center; }
.pgh-card-art--icon img { width: 78%; height: auto; object-fit: contain; }
.pgh-card h3 { margin: 0 0 4px; font: 700 18px/1.2 Georgia,'Times New Roman',serif; color: var(--pgh-ink); }
.pgh-card p { margin: 0 4px 14px; font-size: 14.5px; line-height: 1.4; color: #587063; flex: 1; }
.pgh-play { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto; padding: 10px 26px; border-radius: 999px; background: linear-gradient(180deg,#3FA24F,#2A7A3B); color: #fff !important; font-weight: 700; text-decoration: none !important; box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); }
.pgh-play:hover { filter: brightness(1.07); }
.pgh-soon { display: inline-block; margin: 0 auto; padding: 9px 20px; border-radius: 999px; background: #EEF3EA; color: #6A8573; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.pgh-none { margin: 14px 0 0; color: #587063; }

.pgh-side { display: grid; gap: 20px; }
.pgh-earn { position: relative; background: linear-gradient(135deg,#F6FBF1,#E7F3DE); min-height: 190px; }
.pgh-earn p { margin: 0 0 16px; max-width: 215px; font-size: 15px; line-height: 1.45; color: #2F4B3B; }
.pgh-coins { position: absolute; right: 10px; bottom: 8px; width: 118px; height: auto; }
.pgh-learn { display: inline-flex; gap: 8px; align-items: center; padding: 10px 24px; border-radius: 999px; background: linear-gradient(180deg,#F6679F,#E03A74); color: #fff !important; font-weight: 700; text-decoration: none !important; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.pgh-stats dl { margin: 0; display: grid; gap: 8px; }
.pgh-stats dl > div { display: flex; align-items: center; gap: 12px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(31,110,58,.08); font-size: 16px; }
.pgh-stats dl img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.pgh-stats dt { color: #2F4B3B; flex: 1; }
.pgh-stats dd { margin: 0; font-weight: 800; color: var(--pgh-ink); }
.pgh-join { margin: 0 0 14px; line-height: 1.5; color: #2F4B3B; }

/* Coming soon banner: flowers cut from the mockup at each end, soft wash between */
.pgh-soon-banner { position: relative; margin-top: 28px; min-height: 150px; padding: 26px 30px; border-radius: 28px; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(100deg,#EAF5DC 0%,#DDEED0 45%,#CFE6C6 100%); box-shadow: 0 8px 22px rgba(31,110,58,.12); }
.pgh-fl { position: absolute; top: 0; height: 100%; width: auto; max-width: none; pointer-events: none; }
.pgh-fl--l { left: 0; } .pgh-fl--r { right: 0; }
.pgh-soon-text, .pgh-stay { position: relative; }
.pgh-soon-text { padding-left: clamp(140px, 17vw, 250px); }
.pgh-soon-banner h2 { margin: 0 0 6px; font: 400 clamp(30px, 3.8vw, 48px)/1.1 'Kaushan Script','Brush Script MT',cursive; color: var(--pgh-dark); }
.pgh-soon-banner p { margin: 0; font-size: clamp(15px, 1.4vw, 18px); color: #274635; }
.pgh-stay { flex: none; margin-right: clamp(60px, 9vw, 150px); padding: 13px 34px; border-radius: 999px; background: #fff; border: 3px solid #EF7DA3; color: var(--pgh-pink) !important; font-weight: 700; font-size: 18px; text-decoration: none !important; box-shadow: 0 4px 12px rgba(229,69,122,.15); }

@media (max-width: 1100px) { .pgh-cats { grid-template-columns: repeat(3, 1fr); } .pgh-grid { grid-template-columns: 1fr; } .pgh-side { grid-template-columns: 1fr 1fr; } .pgh-hero-text { width: min(54%, 560px); } }
@media (max-width: 760px) {
  .pgh-hero { align-items: flex-end; min-height: 520px; background-position: 82% top; background-size: auto 56%; background-color: #EAF4DF; }
  .pgh-hero-text { width: 100%; padding: 22px 20px 26px; margin: 0; text-align: center; background: linear-gradient(180deg, rgba(234,244,223,0) 0%, rgba(240,248,232,.94) 22%); }
  .pgh-title::before { display: none; }
  .pgh-copy { margin-left: auto; margin-right: auto; }
  .pgh-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pgh-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pgh-featured, .pgh-box { padding: 14px 12px 18px; }
  .pgh-side { grid-template-columns: 1fr; }
  .pgh-soon-banner { flex-direction: column; text-align: center; padding: 28px 18px; }
  .pgh-fl { opacity: .28; height: 60%; top: auto; bottom: 0; } .pgh-soon-text { padding-left: 0; } .pgh-stay { margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .pgh-cat, .pgh-cta { transition: none; } }

/* 1.8.0 — hero is a finished picture; category boxes are cut-out pictures. */
.ppg-sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pgh-page .pgh-hero.pgh-hero--picture{display:block;position:relative;background:none!important;box-shadow:none;min-height:0;border-radius:0;overflow:visible;margin-bottom:22px}
.pgh-hero--picture::before,.pgh-hero--picture::after{display:none!important}
.pgh-hero--picture .pgh-hero-img{display:block;width:100%;height:auto;border-radius:22px}
.pgh-page .pgh-cat.pgh-cat--pic{background:none;border:0;padding:0;box-shadow:none;display:block;border-radius:22px;line-height:0}
.pgh-cat--pic img{width:100%;max-width:none;height:auto;margin:0;display:block;filter:drop-shadow(0 6px 10px rgba(31,91,58,.12));transition:transform .15s,filter .15s}
.pgh-cat--pic:hover{transform:none;box-shadow:none}
.pgh-cat--pic:hover img{transform:translateY(-3px);filter:drop-shadow(0 10px 14px rgba(31,91,58,.2))}
.pgh-cat--pic[aria-pressed="true"]{outline:3px solid #2f7a4d;outline-offset:3px}
.pgh-cat--pic:focus-visible{outline:3px solid #2f7a4d;outline-offset:3px}
