/*
 * The Play home (my-games.html, task PH2): today's home page colours (yellow
 * #f0c66a page, cream #fffaf0 cards, Fredoka, the panda), green #4fb98a for
 * play with a navy play icon (white on that green is too faint), empty stars
 * and dots in #a8823a. Its own file, so the page needs no Tailwind rebuild.
 * Phones: one column, the Keep going card stacks, two-up tiles, and room at
 * the bottom for the signed-in bottom bar (task PH1).
 */
body.ph-page { background: #f0c66a; color: #1e2a4a; }
.ph-main { max-width: 64rem; padding: 6.5rem 1rem 6rem; }
@media (min-width: 640px) { .ph-main { padding-left: 1.5rem; padding-right: 1.5rem; } }
.ph-main .hidden { display: none !important; }
/* The bars' links (#adventures, the Grown-ups menu's #games-journeys-section)
   land with the heading below the fixed top bar, not under it. */
.ph-main section[id] { scroll-margin-top: calc(5.5rem + env(safe-area-inset-top)); }
.ph-stack { display: flex; flex-direction: column; gap: 2rem; }
.ph-card { background: #fffaf0; border-radius: 1.5rem; box-shadow: 0 6px 14px rgba(0,0,0,.15); padding: 1.25rem; }
.ph-h1 { font-size: 2rem; line-height: 1.15; margin: 0; }
.ph-h2 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .75rem; }
.ph-sub { margin: .25rem 0 0; }
.ph-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; }
.ph-link { font-weight: 700; color: #1e3a8a; text-decoration: underline; }
.ph-hello { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.ph-panda { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.15)); }
.ph-badge-slot:empty { display: none; }
.ph-hello-words { flex: 1 1 12rem; }
.ph-hello-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 9999px; padding: .75rem 1.5rem; font-size: 1.15rem; box-shadow: 0 4px 0 rgba(0,0,0,.15); cursor: pointer; }
.ph-btn-green { background: #4fb98a; color: #172554; }
.ph-btn-white { background: #fffaf0; color: #1e2a4a; border: 2px solid #1e3a8a; font-size: 1rem; padding: .5rem 1rem; }
.ph-play-icon { color: #1e3a8a; }
.ph-add { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; }
.ph-add-buddies { font-size: 2.5rem; margin: 0; letter-spacing: .25rem; }
/* Keep going */
.ph-keep { display: flex; align-items: center; gap: 1.25rem; background: #fffaf0; border: 5px solid #4fb98a; border-radius: 2rem; padding: 1.25rem 1.5rem; box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.ph-pic { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 1.5rem; line-height: 1; }
.ph-keep-pic { width: 120px; height: 120px; font-size: 72px; background: #fff3d1; }
.ph-keep-words { flex: 1 1 auto; min-width: 0; }
.ph-kicker { font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; margin: 0; color: #1e2a4a; }
.ph-keep-name { font-size: 2rem; line-height: 1.15; margin: .25rem 0 .5rem; }
.ph-stars { display: flex; flex-wrap: wrap; gap: 2px; }
.ph-stars svg { width: 22px; height: 22px; }
.ph-play-big { width: 130px; height: 130px; flex-shrink: 0; border-radius: 9999px; background: #4fb98a; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 0 #2f8f66; transition: transform .15s; }
.ph-play-big svg { width: 54px; height: 54px; margin-left: 8px; }
.ph-play-big:hover, .ph-play-big:focus-visible { transform: translateY(-2px); }
@media (max-width: 639px) {
  .ph-keep { flex-direction: column; text-align: center; }
  .ph-stars { justify-content: center; }
  .ph-keep-name { font-size: 1.6rem; }
}
/* Grids */
.ph-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ph-grid-journeys, .ph-grid-tiles, .ph-grid-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph-grid-adventures { grid-template-columns: minmax(0, 1fr); margin-top: 1rem; }
@media (min-width: 640px) {
  .ph-grid-journeys, .ph-grid-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ph-grid-adventures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-grid-topics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ph-tile { display: flex; flex-direction: column; align-items: center; gap: .5rem; height: 100%; text-align: center; padding: 1rem .75rem; background: #fffaf0; border-radius: 1.5rem; box-shadow: 0 6px 14px rgba(0,0,0,.15); color: #1e2a4a; text-decoration: none; transition: transform .15s; }
.ph-tile:hover, .ph-tile:focus-visible { transform: translateY(-3px); }
.ph-tile-pic { width: 72px; height: 72px; font-size: 46px; background: #fff3d1; }
.ph-tile-name { font-size: 1.15rem; line-height: 1.2; }
.ph-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.ph-dot { display: block; width: 10px; height: 10px; border-radius: 9999px; background: transparent; border: 2px solid #a8823a; }
.ph-dot.on { background: #4fb98a; border-color: #2f8f66; }
.ph-tile-note { font-size: .85rem; margin: 0; }
.ph-topic { border-top: 8px solid var(--ph-topic, #4fb98a); }
.ph-topic .ph-tile-pic { background: var(--ph-topic-bg, #fff3d1); }
/* Adventures */
.ph-featured { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; background: #1e3a8a; color: #fff; border-radius: 2rem; padding: 1.5rem; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.ph-featured-pic { width: 112px; height: 112px; font-size: 68px; background: rgba(255,255,255,.14); }
.ph-featured-words { flex: 1 1 14rem; }
.ph-featured .ph-kicker { color: #fde68a; }
.ph-featured-title { font-size: 2rem; line-height: 1.15; margin: .25rem 0; color: #fff; }
.ph-featured-hook { margin: 0 0 .75rem; }
.ph-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.ph-tags li { background: rgba(255,255,255,.16); border-radius: 9999px; padding: .2rem .7rem; font-size: .85rem; font-weight: 600; }
.ph-try { background: #f0c66a; color: #172554; font-size: 1.3rem; padding: .9rem 1.75rem; }
.ph-adv { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1rem 2.75rem 1rem 1rem; background: #fffaf0; border-radius: 1.5rem; box-shadow: 0 6px 14px rgba(0,0,0,.15); color: #1e2a4a; text-decoration: none; overflow: hidden; height: 100%; }
.ph-adv-pic { width: 72px; height: 72px; font-size: 46px; background: #e0ecff; }
.ph-adv-name { font-size: 1.25rem; line-height: 1.2; display: block; }
.ph-adv-hook { font-size: .9rem; display: block; }
.ph-ribbon { position: absolute; top: .7rem; right: -2.2rem; transform: rotate(35deg); background: #b91c1c; color: #fff; font-weight: 800; font-size: .75rem; letter-spacing: .06em; padding: .15rem 2.6rem; }
.ph-played { display: inline-block; margin-top: .25rem; font-size: .8rem; font-weight: 700; background: #dcfce7; color: #14532d; border-radius: 9999px; padding: .1rem .55rem; }
.ph-grownups { margin-top: .75rem; font-size: .9rem; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; }
.ph-grownups p { margin: 0; }
.ph-grownups button { text-decoration: underline; color: #1e3a8a; font-weight: 600; }
/* By age */
.ph-ages { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; }
.ph-ages-label { font-weight: 700; }
.ph-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ph-chip { display: inline-flex; align-items: center; gap: .35rem; background: #fffaf0; border-radius: 9999px; padding: .4rem .9rem; font-weight: 600; color: #1e2a4a; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
/* Explore */
.ph-explore { display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; background: #fffaf0; border-radius: 2rem; padding: 1.5rem; box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.ph-explore-row { display: flex; align-items: center; justify-content: center; gap: 1rem; width: 100%; }
.ph-explore-pic { width: 120px; height: 120px; font-size: 72px; background: #fff3d1; }
.ph-explore-name { font-size: 1.8rem; line-height: 1.15; margin: 0; }
.ph-arrow { width: 56px; height: 56px; flex-shrink: 0; border-radius: 9999px; background: #fff; border: 3px solid #1e3a8a; color: #1e3a8a; font-size: 1.4rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ph-arrow:disabled { opacity: .45; cursor: default; }
.ph-explore-play { width: 96px; height: 96px; }
.ph-explore-play svg { width: 40px; height: 40px; margin-left: 6px; }
.ph-next-after { margin: 0; font-size: .95rem; }
.ph-main a:focus-visible, .ph-main button:focus-visible { outline: 3px solid #1e3a8a; outline-offset: 3px; }
