/*
 * Daily games: Pour Decisions, Word Chain, Daily Trivia and the /games/ hub.
 * Same colour system as quizzes: each game owns one hue family used tone on
 * tone (--vivid, --deep, --tint, --wash). Green and red only for right/wrong.
 * Flat colour; no gradients, shadows, stripes or emoji.
 */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/Bricolage-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/Bricolage-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

.pg, .pg-hub {
  --vivid: #b795ff; --deep: #231440; --tint: #e1d5ff; --tint2: #d4c6ff; --wash: #f1ecff;
  --night: #1b0f36; --sun: #fede23; --sun-deep: #2a1e00;
  --ok: #6ce98d; --ok-deep: #002907; --ok-wash: #e7f9ea;
  --no: #ff7a73; --no-deep: #3d090a; --no-wash: #ffedea;
  --r: 14px;
  --pg-font: "Bricolage", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--pg-font);
  font-weight: 600;
  color: var(--deep);
}
.pg-h0 { --vivid: #b795ff; --deep: #231440; --tint: #e1d5ff; --tint2: #d4c6ff; --wash: #f1ecff; }
.pg-h1 { --vivid: #fede23; --deep: #2a1e00; --tint: #fbec9c; --tint2: #f6e27a; --wash: #fdf7d2; }
.pg-h2 { --vivid: #6abfff; --deep: #002142; --tint: #c1e3ff; --tint2: #aed6f9; --wash: #e2f3ff; }
.pg-q1 { --vivid: #fede23; --deep: #2a1e00; --tint: #fbec9c; --tint2: #f6e27a; --wash: #fdf7d2; }
.pg-q2 { --vivid: #6abfff; --deep: #002142; --tint: #c1e3ff; --tint2: #aed6f9; --wash: #e2f3ff; }
.pg-q3 { --vivid: #ff7eb6; --deep: #3a0921; --tint: #ffcbe0; --tint2: #ffbad4; --wash: #ffe7f1; }
.pg-q4 { --vivid: #5ce4d5; --deep: #002a24; --tint: #b9eae2; --tint2: #a5ded6; --wash: #dff6f2; }

.pg *, .pg-hub *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg button, .pg-hub button { font-family: inherit; -webkit-tap-highlight-color: transparent; }
.pg button:focus-visible, .pg a:focus-visible, .pg-hub a:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }

/* Theme title on puzzle pages */
.single-srp_game .entry-header,
.single-srp_game .hero-section { max-width: 680px; margin-left: auto; margin-right: auto; }
.single-srp_game .entry-header .page-title,
.single-srp_game .entry-header .entry-title,
.single-srp_game .hero-section .page-title {
  font-family: "Bricolage", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.04;
  color: #231440;
}
.single-srp_game .ct-featured-image,
.single-srp_game .entry-meta,
.single-srp_game .ct-share-box,
.single-srp_game .author-box,
.single-srp_game .post-navigation,
.single-srp_game .ct-related-posts-container { display: none !important; }

/* ---------- Page frame ---------- */
.pg { max-width: 720px; margin: 8px auto 56px; }
.pg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.pg-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 99px;
  background: var(--wash); color: var(--deep) !important;
  font-size: 14px; font-weight: 800; text-decoration: none !important;
}
.pg-back::before { content: ""; width: 7px; height: 7px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); margin-right: 2px; }
.pg-back:hover { background: var(--tint); }
.pg-date { font-size: 14px; font-weight: 800; opacity: .75; }

/* ---------- The board (every game) ---------- */
.pg-board {
  --b-bg: #1b0f36; --b-raise: #2a1a52; --b-line: rgba(255,255,255,.14); --b-mute: rgba(255,255,255,.62);
  --lv0: #4ade80; --lv0-deep: #062b14; --lv1: #fcd34d; --lv1-deep: #2a1e00; --lv2: #ff7a73; --lv2-deep: #3d090a; --lv3: #b795ff; --lv3-deep: #231440;
  position: relative;
  padding: 18px 16px 22px;
  border-radius: 22px;
  background: var(--b-bg);
  color: #fff;
}
.pg-board-top { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0 0 18px; }
.pg-how-btn {
  align-self: flex-start; appearance: none; border: 0; cursor: pointer;
  padding: 9px 18px; border-radius: 99px;
  background: #120a26; color: #ffb3d9; box-shadow: inset 0 -3px 0 rgba(0,0,0,.45), 0 0 0 1px var(--b-line);
  font-size: 15px; font-weight: 800;
}
.pg-levels { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pg-lvl {
  --c: var(--lv0); --cd: var(--lv0-deep);
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 0 18px; border-radius: 99px;
  border: 2px solid var(--c); background: transparent; color: var(--c);
  font-size: 16px; font-weight: 800;
}
.pg-lvl-1 { --c: var(--lv1); --cd: var(--lv1-deep); }
.pg-lvl-2 { --c: var(--lv2); --cd: var(--lv2-deep); }
.pg-lvl-3, .pg-lvl-bonus { --c: var(--lv3); --cd: var(--lv3-deep); }
.pg-lvl.is-on { background: var(--c); color: var(--cd); }
.pg-lvl.is-done::after { content: ""; width: 9px; height: 5px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.pg-lvl.is-locked { border-color: var(--b-line); color: var(--b-mute); }
.pg-lvl.is-locked { border-color: var(--b-line); color: var(--b-mute); }
.pg-lvl svg { width: 13px; height: 15px; flex: none; }
.pg-board button:focus-visible { outline-color: #fff; }

.pg-bar { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.pg-count {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 12px; border-radius: 99px; background: var(--b-raise); color: #fff;
  font-size: 14px; white-space: nowrap;
}
.pg-count span { color: var(--b-mute); }
.pg-count b { display: inline-block; min-width: 2ch; text-align: center; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pg-tools { display: flex; gap: 8px; }
.pg-tool {
  appearance: none; border: 0; cursor: pointer;
  min-height: 36px; padding: 0 12px; border-radius: 99px;
  background: transparent; color: #fff; box-shadow: inset 0 0 0 2px var(--b-line);
  font-size: 14px; font-weight: 800;
}
.pg-tool:disabled { opacity: .35; cursor: default; }

.pg-btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 99px;
  font-size: 17px; font-weight: 800; line-height: 1; text-decoration: none;
  transition: transform .1s, box-shadow .1s;
}
.pg-btn:active { transform: translateY(2px); }
.pg-btn:disabled { opacity: .4; cursor: default; transform: none; }
.pg-btn-sun { background: var(--sun); color: var(--sun-deep); box-shadow: 0 4px 0 #b99a00; }
.pg-btn-sun:active { box-shadow: 0 2px 0 #b99a00; }
.pg-btn-check { min-width: min(320px, 100%); min-height: 56px; font-size: 20px; background: #f9a8d4; color: #831843; box-shadow: 0 5px 0 #be185d; }
.pg-btn-check:active { box-shadow: 0 3px 0 #be185d; }
.pg-btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.pg-center { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }

.pg-hint { margin: 16px 0 0; text-align: center; font-size: 15px; color: var(--b-mute); min-height: 1.4em; }
.pg-hint.is-warn { color: #ffb4ae; }
.pg-caption { margin: 18px 0 0; text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--b-mute); }

.pg-toast {
  position: absolute; left: 50%; bottom: 14px; z-index: 30;
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px;
  background: #fff; color: #1b0f36; font-size: 14.5px; font-weight: 800; text-align: center;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.pg-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* How to Play */
.pg-how {
  position: absolute; inset: 10px; z-index: 25; overflow: auto;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px;
  padding: 24px 22px; border-radius: 18px; background: var(--b-raise);
  animation: pg-in .2s ease-out;
}
.pg-how h3 { margin: 0 !important; color: #fff !important; font-family: var(--pg-font) !important; font-size: 24px !important; font-weight: 800 !important; }
.pg-how ol { margin: 0; padding: 0 0 0 1.3em; display: grid; gap: 10px; font-size: 16.5px; line-height: 1.4; }
.pg-how li { padding-left: 4px; }
.pg-how li::marker { color: var(--sun); font-weight: 800; }
@keyframes pg-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* Level complete */
.pg-lvdone { margin: 20px 0 0; padding: 20px 18px; border-radius: 16px; background: var(--b-raise); text-align: center; animation: pg-in .25s ease-out; }
.pg-lvdone-k { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--lv0); }
.pg-lvdone-big { margin: 6px 0 0; font-size: 32px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.pg-lvdone-line { margin: 6px 0 0; color: var(--b-mute); font-size: 16px; }
.pg-lvdone-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 0; }

/* ---------- Pour Decisions ---------- */
.pg-l-a { --c: #ff6b7a; } .pg-l-b { --c: #ffd966; } .pg-l-c { --c: #6aa8ff; }
.pg-l-d { --c: #5fd39a; } .pg-l-e { --c: #b28dff; } .pg-l-f { --c: #ffa3d4; }
.pg-l-g { --c: #6fe0e6; } .pg-l-h { --c: #ffab5e; } .pg-l-i { --c: #c5ec6f; }
.pg-l-j { --c: #c79b7b; }

.pg-t-pour .pg-board { background: #241548; }
.pg-rack { display: flex; flex-direction: column; gap: 38px; align-items: center; padding: 30px 0 6px; }
.pg-row { display: flex; justify-content: center; gap: clamp(10px, 3.4vw, 22px); }
.pg-tube {
  --cap: 4;
  --lh: 0;
  --seg: clamp(32px, 9vw, 46px);
  appearance: none; cursor: pointer;
  position: relative; z-index: 1;
  width: clamp(42px, 11.6vw, 58px);
  height: calc(var(--seg) * var(--cap) + 16px);
  padding: 0 4px 4px;
  border: 3px solid rgba(255,255,255,.55); border-top-width: 0;
  border-radius: 0 0 99px 99px;
  background: rgba(255,255,255,.07);
  display: flex; flex-direction: column-reverse; align-items: stretch;
  overflow: hidden;
  transition: transform .32s cubic-bezier(.34,1.35,.64,1), background-color .2s, border-color .3s;
}
.pg-tube::before { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 3px; border-radius: 2px; background: rgba(255,255,255,.75); }
.pg-glass { position: absolute; z-index: 2; left: 7px; top: 12px; bottom: 16px; width: 5px; border-radius: 3px; background: rgba(255,255,255,.28); pointer-events: none; }
.pg-tube .pg-liq { position: relative; flex: 0 0 var(--seg); background: var(--c); }
.pg-tube .pg-glass + .pg-liq { border-radius: 0 0 99px 99px; }
.pg-tube .pg-liq.is-top::after {
  /* the liquid's surface */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: rgba(255,255,255,.38); border-radius: 0 0 3px 3px;
}
.pg-bubbles { position: absolute; z-index: 1; left: 0; right: 0; bottom: 6px; height: calc(var(--lh) * var(--seg) - 10px); pointer-events: none; overflow: hidden; }
.pg-tube.is-empty .pg-bubbles { display: none; }
.pg-bubbles i { position: absolute; bottom: -8px; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.55); animation: pg-bubble 3.6s ease-in infinite; }
.pg-bubbles i:nth-child(1) { left: 30%; animation-delay: .4s; }
.pg-bubbles i:nth-child(2) { left: 58%; width: 4px; height: 4px; animation-delay: 1.7s; animation-duration: 4.2s; }
.pg-bubbles i:nth-child(3) { left: 44%; width: 3px; height: 3px; animation-delay: 2.9s; animation-duration: 3.2s; }
@keyframes pg-bubble { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: .8; } 100% { transform: translateY(calc(-1 * var(--lh) * var(--seg))); opacity: 0; } }
.pg-tube.is-up { transform: translateY(-14px); }
.pg-tube.is-target { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.85); }
.pg-tube.is-full { border-color: rgba(255,255,255,.85); }
.pg-cork {
  position: absolute; z-index: 4; top: -1px; left: 50%; width: 62%; height: 13px;
  transform: translateX(-50%); border-radius: 4px 4px 6px 6px;
  background: #e8b884; box-shadow: inset 0 -3px 0 rgba(0,0,0,.14);
}
.pg-cork.is-new { animation: pg-cork .5s cubic-bezier(.34,1.5,.64,1) both; }
@keyframes pg-cork { from { transform: translate(-50%, -26px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.pg-tube.is-full .pg-bubbles i { animation-duration: 2.2s; }
.pg-tube.is-no { animation: pg-nudge .36s ease-in-out; }
@keyframes pg-nudge { 25% { transform: translateX(-4px) rotate(-2deg); } 75% { transform: translateX(4px) rotate(2deg); } }
.pg-tube:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
@keyframes pg-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.pg-stream { position: absolute; z-index: 4; width: 7px; border-radius: 4px; pointer-events: none; }

/* ---------- Word Chain ---------- */
.pg-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pg-tile {
  --tile: #9b5cf6;
  --size: clamp(72px, 21vw, 116px);
  appearance: none; cursor: pointer;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: var(--size); height: var(--size); padding: 6px;
  border: 3px solid rgba(255,255,255,.22); border-radius: 18px;
  background: var(--tile); color: #fff;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.22);
  transition: transform .15s, box-shadow .15s;
}
.pg-tile:hover { transform: translateY(-2px); }
.pg-tile-n { position: absolute; top: 6px; left: 9px; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.75); }
.pg-tile-w { font-size: clamp(15px, 4.2vw, 21px); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.pg-tile-w.is-long { font-size: clamp(12.5px, 3.5vw, 18px); }
.pg-tile-w.is-xlong { font-size: clamp(11px, 3vw, 15px); }
.pg-tile.is-picked { transform: translateY(-5px) scale(1.05); border-color: #fff; box-shadow: inset 0 -5px 0 rgba(0,0,0,.22), 0 0 0 4px rgba(255,255,255,.35); }
.pg-tile.is-lock { cursor: default; border-color: #fcd34d; box-shadow: inset 0 -5px 0 rgba(0,0,0,.22), 0 0 0 3px var(--b-bg), 0 0 0 6px #fcd34d; }
.pg-tile.is-lock:hover { transform: none; }
.pg-tile-lock { position: absolute; top: 7px; right: 8px; width: 13px; height: 10px; border-radius: 2.5px; background: #fcd34d; }
.pg-tile-lock::before { content: ""; position: absolute; left: 2.5px; top: -6px; width: 8px; height: 8px; box-sizing: border-box; border: 2.5px solid #fcd34d; border-bottom: 0; border-radius: 5px 5px 0 0; }
.pg-tile.is-pop { animation: pg-pop .45s ease-out; }
.pg-tile.is-no { animation: pg-shake .32s; }
@keyframes pg-pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.pg-tiles.is-solved .pg-tile { animation: pg-wave .5s ease-out both; }
.pg-tiles.is-solved .pg-tile:nth-child(2) { animation-delay: .05s; } .pg-tiles.is-solved .pg-tile:nth-child(3) { animation-delay: .1s; }
.pg-tiles.is-solved .pg-tile:nth-child(4) { animation-delay: .15s; } .pg-tiles.is-solved .pg-tile:nth-child(5) { animation-delay: .2s; }
.pg-tiles.is-solved .pg-tile:nth-child(6) { animation-delay: .25s; } .pg-tiles.is-solved .pg-tile:nth-child(7) { animation-delay: .3s; }
.pg-tiles.is-solved .pg-tile:nth-child(8) { animation-delay: .35s; } .pg-tiles.is-solved .pg-tile:nth-child(9) { animation-delay: .4s; }
@keyframes pg-wave { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px); } }
.pg-linklist { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; }
.pg-linklist span { padding: 5px 12px; border-radius: 99px; background: var(--lv0); color: var(--lv0-deep); font-size: 13.5px; font-weight: 800; letter-spacing: .04em; }

/* ---------- Daily Trivia ---------- */
.pg-dots { display: flex; gap: 6px; flex: 1; max-width: 360px; }
.pg-dot { flex: 1; height: 10px; border-radius: 99px; background: rgba(255,255,255,.14); }
.pg-dot.is-ok { background: var(--ok); }
.pg-dot.is-no { background: var(--no); }
.pg-dot.is-on { box-shadow: 0 0 0 2.5px #fff; }
.pg-qnum { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pg-q { margin: 0; }
.pg-q-img { display: block; width: 100%; height: 240px; object-fit: cover; border-radius: 16px 16px 0 0; }
.pg-q-head {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: clamp(150px, 30vw, 210px); padding: 24px 20px;
  background: var(--vivid); border-radius: 16px; text-align: center;
}
.pg-q-img + .pg-q-head { border-radius: 0 0 16px 16px; min-height: 0; padding: 20px; }
.pg-cat {
  padding: 4px 12px; border-radius: 99px; background: var(--deep); color: var(--vivid);
  font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.pg-q-text {
  margin: 0 !important; color: var(--deep) !important;
  font-family: var(--pg-font) !important; font-weight: 800 !important;
  font-size: clamp(22px, 5vw, 30px) !important; line-height: 1.12 !important; letter-spacing: -.02em;
}
.pg-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 0; }
.pg-ans {
  appearance: none; border: 0; cursor: pointer;
  min-height: 72px; padding: 14px 16px; border-radius: 14px;
  background: var(--tint); color: var(--deep);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.12);
  font-size: 18px; font-weight: 800; line-height: 1.15; text-align: center;
  transition: transform .1s;
}
.pg-ans:hover:not(:disabled) { background: var(--tint2); }
.pg-ans:active:not(:disabled) { transform: translateY(2px); }
.pg-ans:disabled { cursor: default; }
.pg-ans.is-right { background: var(--ok); color: var(--ok-deep); animation: pg-pop .4s ease-out; }
.pg-ans.is-wrong { background: var(--no); color: var(--no-deep); animation: pg-shake .3s; }
.pg-ans.is-dim { opacity: .4; }
.pg-reveal { margin: 12px 0 0; padding: 16px 18px; border-radius: 14px; font-size: 16.5px; line-height: 1.4; animation: pg-in .2s ease-out; }
.pg-reveal.is-ok { background: var(--ok-wash); color: var(--ok-deep); }
.pg-reveal.is-no { background: var(--no-wash); color: var(--no-deep); }
.pg-reveal b { display: block; font-size: 19px; font-weight: 800; }
.pg-reveal p { margin: 6px 0 0; }
.pg-reveal .pg-pct { font-weight: 800; }
.pg-review { text-align: center; }
.pg-review-k { margin: 0; color: var(--b-mute); font-size: 14px; }

/* ---------- Day summary ---------- */
.pg-end-wrap { margin: 28px 0 0; scroll-margin-top: 16px; }
.pg-end { padding: 28px 22px 24px; border-radius: 22px; background: #2a1a52; color: #fff; text-align: center; }
.pg-end-kicker {
  display: inline-block; margin: 0 0 12px; padding: 5px 14px; border-radius: 99px;
  background: var(--sun); color: var(--sun-deep);
  font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.pg-end-big { margin: 0; font-size: clamp(32px, 8vw, 48px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.pg-end-levels { display: grid; gap: 8px; max-width: 420px; margin: 18px auto 0; }
.pg-end-level { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #1b0f36; font-size: 16px; }
.pg-lvl-dot { padding: 3px 12px; border-radius: 99px; background: var(--c, #4ade80); color: var(--cd, #062b14); font-size: 13px; }
.pg-end-level .pg-lvl-0 { --c: #4ade80; --cd: #062b14; } .pg-end-level .pg-lvl-1 { --c: #fcd34d; --cd: #2a1e00; }
.pg-end-level .pg-lvl-2 { --c: #ff7a73; --cd: #3d090a; } .pg-end-level .pg-lvl-3 { --c: #b795ff; --cd: #231440; }
.pg-end-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; }
.pg-fact { min-width: 96px; padding: 10px 12px; border-radius: 12px; background: #1b0f36; }
.pg-fact b { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pg-fact span { display: block; font-size: 12.5px; opacity: .8; }
.pg-end-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 0; }
.pg-end-next { margin: 16px 0 0; font-size: 15px; opacity: .8; font-variant-numeric: tabular-nums; }
.pg-end-tease { display: inline-block; margin: 10px 0 0; padding: 6px 14px; border-radius: 99px; background: #1b0f36; font-size: 14.5px; }
.pg-end-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px auto 0; }
.pg-sq { appearance: none; border: 0; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; font-weight: 800; font-size: 15px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
.pg-sq.is-ok { background: var(--ok); color: var(--ok-deep); }
.pg-sq.is-no { background: var(--no); color: var(--no-deep); }

.pg-more { margin: 28px 0 0; }
.pg-more h3 { margin: 0 0 12px !important; font-family: var(--pg-font) !important; font-size: 22px !important; font-weight: 800 !important; color: #231440 !important; }
.pg-more h4 { margin: 20px 0 10px !important; font-family: var(--pg-font) !important; font-size: 16px !important; font-weight: 800 !important; color: #231440 !important; }
.pg-more-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.pg-more-card { position: relative; display: block; padding: 16px 18px; border-radius: 14px; background: var(--vivid); color: var(--deep) !important; text-decoration: none !important; }
.pg-more-card b { display: block; font-size: 19px; font-weight: 800; }
.pg-more-card span { display: block; font-size: 14px; opacity: .85; }
.pg-more-card.is-done { background: var(--wash); }
.pg-more-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-more-chips a { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 99px; background: var(--wash); color: var(--deep) !important; font-weight: 800; text-decoration: none !important; }
.pg-more-chips small { font-size: 12.5px; opacity: .7; }
.pg-more-hub { display: inline-block; margin: 18px 0 0; color: #231440 !important; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .pg *, .pg *::before, .pg *::after { animation: none !important; transition: none !important; }
}
/* ---------- Hub ---------- */
.pg-hub-main { padding: 0 16px; }
.pg-hub { max-width: 1120px; margin: 28px auto 64px; }
.pg-hub-head { margin: 0 0 24px; }
.pg-hub-head h1 {
  margin: 10px 0 6px !important; font-family: var(--pg-font) !important; font-weight: 800 !important;
  font-size: clamp(40px, 8vw, 64px) !important; letter-spacing: -.035em; line-height: 1 !important; color: #231440 !important;
}
.pg-hub-head p { margin: 0; font-size: 18px; color: #231440; opacity: .8; }
.pg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pg-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--wash); }
.pg-card-art { display: flex; align-items: center; justify-content: center; height: 200px; background: var(--vivid); }
.pg-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 20px 22px; }
.pg-card-body h2 { margin: 0 !important; font-family: var(--pg-font) !important; font-size: 30px !important; font-weight: 800 !important; letter-spacing: -.025em; line-height: 1.05 !important; color: var(--deep) !important; }
.pg-card-body p { margin: 0; font-size: 16px; line-height: 1.35; }
.pg-card-meta { font-size: 14px; font-weight: 800; opacity: .75; }
.pg-play {
  margin-top: auto; display: flex; align-items: center; justify-content: center;
  min-height: 50px; border-radius: 99px; background: var(--deep); color: #fff !important;
  font-size: 17px; font-weight: 800; text-decoration: none !important;
}
.pg-play:hover { background: var(--night); }
.pg-play.is-done { background: var(--ok); color: var(--ok-deep) !important; }
.pg-past { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.pg-past > span { width: 100%; font-weight: 800; opacity: .7; }
.pg-past a {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px;
  background: var(--tint); color: var(--deep) !important; font-weight: 800; text-decoration: none !important;
}
.pg-past a.is-done { background: var(--ok); color: var(--ok-deep) !important; }
.pg-past a.pg-all { background: transparent; box-shadow: inset 0 0 0 2px var(--tint2); }

/* Card motifs */
.pg-motif-pour { display: flex; gap: 16px; align-items: flex-end; }
.pg-mtube { display: flex; flex-direction: column-reverse; width: 40px; height: 126px; padding: 0 3px 3px; border: 3px solid var(--deep); border-top: 0; border-radius: 0 0 99px 99px; background: #fff; overflow: hidden; }
.pg-mtube:nth-child(2) { transform: translateY(-14px); }
.pg-mtube i { flex: 0 0 29px; background: var(--c); }
.pg-mtube i:first-child { border-radius: 0 0 99px 99px; }
.pg-motif-chain { display: flex; gap: 10px; }
.pg-motif-chain b { display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 16px; background: var(--t); color: #fff; box-shadow: inset 0 -5px 0 rgba(0,0,0,.22); font-size: 18px; font-weight: 800; }
.pg-motif-chain b:first-child { box-shadow: inset 0 -5px 0 rgba(0,0,0,.22), 0 0 0 3px var(--vivid), 0 0 0 6px #2a1e00; }
.pg-motif-trivia { font-size: 190px; font-weight: 800; line-height: 1; color: var(--deep); transform: rotate(8deg); }

/* Archive */
.pg-arch { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pg-arch li { margin: 0; }
.pg-arch a { display: block; padding: 14px 16px; border-radius: 12px; background: var(--wash); color: var(--deep) !important; text-decoration: none !important; }
.pg-arch a:hover { background: var(--tint); }
.pg-arch a.is-done { background: var(--ok-wash); }
.pg-arch b { display: block; font-size: 22px; font-weight: 800; }
.pg-arch span { font-size: 14px; opacity: .8; }
.pg-done-mark { display: none; }
.is-done .pg-done-mark { display: inline-block; width: 9px; height: 5px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg) translateY(-2px); margin-left: 4px; }
.pg-empty { font-size: 18px; }

.pg-lvdots { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle; }
.pg-lvdots i { width: 9px; height: 9px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px var(--deep); opacity: .45; }
.pg-lvdots i.is-done { opacity: 1; box-shadow: none; }
.pg-lvdots i.is-done { background: #2bb673; }

@media (max-width: 860px) {
  .pg-cards { grid-template-columns: 1fr; }
  .pg-card { flex-direction: row; }
  .pg-card-art { width: 38%; height: auto; min-height: 200px; }
  .pg-motif-pour { transform: scale(.7); }
  .pg-motif-chain { transform: scale(.62); }
  .pg-motif-trivia { font-size: 140px; }
}
@media (max-width: 560px) {
  .pg-card { flex-direction: column; }
  .pg-card-art { width: auto; min-height: 0; height: 180px; }
  .pg-motif-pour { transform: scale(.8); }
  .pg-motif-chain { transform: scale(.9); }
  .pg-motif-trivia { font-size: 130px; }
  .pg-board { padding: 14px 10px 18px; border-radius: 18px; margin: 0 -6px; }
  .pg-tiles { gap: 9px; }
  .pg-ans { min-height: 64px; font-size: 16.5px; padding: 12px; }
  .pg-q-img { height: 190px; }
  .pg-lvl { min-height: 38px; padding: 0 14px; font-size: 15px; }
}
