/* Petal Pop: game styles on top of design/garden.css. Tokens only (no new colours or fonts).
   Layout patterns from Gnome Line ui.css (fixed game screen under the app bar, one minmax(0,1fr) column). */

html.pp-playing, html.pp-playing body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.pp-screen[hidden] { display: none !important; }
.pp-chip:empty { display: none; }
[hidden] { display: none !important; }

.pp-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; }
.pp-ico svg { width: 100%; height: 100%; display: block; }
.pp-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 8px; white-space: nowrap;
  border: var(--gg-border); border-radius: var(--gg-r-pill); background: var(--gg-paper); box-shadow: var(--gg-shadow-sm);
  font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-md); font-variant-numeric: tabular-nums;
}
.pp-note { font-size: var(--gg-text-xs); color: var(--gg-ink-3); text-align: center; font-weight: 600; line-height: 1.4; }
.pp-want { font-size: var(--gg-text-sm); color: var(--gg-ink-2); text-align: center; font-weight: 600; line-height: 1.4; }
.pp-want:empty { display: none; }
.pp-iconbtn {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--gg-ink);
  border: var(--gg-border); border-radius: var(--gg-r-pill); background: var(--gg-paper); box-shadow: var(--gg-shadow-sm);
  transition: transform var(--gg-dur-xs) var(--gg-ease-out), box-shadow var(--gg-dur-xs) ease; touch-action: manipulation;
}
.pp-iconbtn svg { width: 22px; height: 22px; }
.pp-iconbtn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--gg-ink); }
.gg-btn .pp-ico { width: 22px; height: 22px; }
.gg-btn { gap: 8px; }
.pp-adbtn { position: relative; }
.pp-adtag {
  display: inline-block; padding: 1px 7px; border: 1.5px solid var(--gg-ink); border-radius: var(--gg-r-pill);
  font-family: var(--gg-font-body); font-size: var(--gg-text-xs); font-weight: 700; line-height: 1.3; background: var(--gg-sand); text-transform: lowercase;
}

/* ------------------------------------------------------------------ start */
.pp-start__in { display: grid; gap: var(--gg-s5); padding-block: var(--gg-s5) var(--gg-s7); grid-template-columns: minmax(0, 1fr); }
.pp-start__hero h1 { margin-top: 6px; }
.pp-start__hero .gg-lede { margin-top: 10px; }
.pp-hero { margin-top: var(--gg-s4); aspect-ratio: 5 / 6; height: min(42vh, 120vw); max-width: 100%; margin-inline: auto; }
/* the app bar (Gnome Line's rule): the name chip off screen while playing, the rules button only in the level */
html.pp-playing .pp-chip { display: none; }
html:not(.pp-ingame) #help-btn { display: none; }
@media (max-width: 420px) {
  .gg-wordmark { font-size: 20px; }
  .gg-wordmark svg { width: 30px; height: 30px; }
  html.pp-playing .gg-appbar__in { min-height: 56px; }
}
@media (max-width: 999.98px) { html.pp-ingame .gg-toasts { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.pp-hero canvas { display: block; width: 100%; height: 100%; }
.pp-start__side { display: grid; gap: var(--gg-s5); align-content: start; grid-template-columns: minmax(0, 1fr); }
.pp-playpanel { display: grid; gap: 14px; }
.pp-journeyline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pp-journeyline__lv { font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-xl); letter-spacing: -.02em; }
.pp-journeyline__garden { font-weight: 700; color: var(--gg-ink-3); font-size: var(--gg-text-sm); flex: 1; min-width: 0; }
.pp-pill--stars { height: 34px; }
.pp-dailybtn { justify-content: center; }
.pp-dailybtn__best { font-family: var(--gg-font-body); font-weight: 700; font-size: var(--gg-text-sm); color: var(--gg-ink-3); }
.pp-dailybtn__best:empty { display: none; }
.pp-startrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-startrow .gg-btn { padding-inline: 10px; }
.pp-howlink { justify-self: center; min-height: 44px; }
.pp-resume { display: grid; gap: 10px; }
.pp-resume__t { font-weight: 700; }
@media (min-width: 900px) {
  .pp-start__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--gg-s7); align-items: start; padding-block: var(--gg-s6); }
  .pp-hero { height: min(56vh, 560px); margin-inline: 0; }
  .pp-start__side { padding-top: 96px; }
}

/* ------------------------------------------------------------------ the garden path (map) */
.pp-map { position: fixed; left: 0; right: 0; top: var(--pp-bar, 66px); bottom: 0; z-index: 10; display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); background: var(--gg-green-100); }
.pp-maphead { display: flex; align-items: center; gap: 12px; padding: 8px var(--gg-gutter); background: var(--gg-paper); border-bottom: var(--gg-border); min-height: 60px; }
.pp-maphead__t { flex: 1; min-width: 0; }
.pp-maphead__t h2 { font-size: var(--gg-text-xl); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-mapscroll { overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pp-mapinner { position: relative; max-width: 520px; margin: 0 auto; }
.pp-mapinner > svg.pp-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pp-stone {
  position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: var(--gg-border); border-radius: 50%; background: var(--gg-sand); box-shadow: var(--gg-shadow-sm);
  font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-lg); color: var(--gg-ink); touch-action: manipulation;
  transition: transform var(--gg-dur-xs) var(--gg-ease-out), box-shadow var(--gg-dur-xs) ease;
}
.pp-stone:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--gg-ink); }
.pp-stone.is-current { background: var(--gg-lime); box-shadow: 0 0 0 4px var(--gg-paper), 0 0 0 6px var(--gg-ink), var(--gg-shadow); }
.pp-stone.is-locked { color: var(--gg-ink-3); border-color: var(--gg-ink-3); background: var(--gg-cream); box-shadow: none; cursor: default; }
.pp-stone__stars { position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%); display: flex; gap: 0; padding: 1px 4px; border: 2px solid var(--gg-ink); border-radius: var(--gg-r-pill); background: var(--gg-paper); }
.pp-stone__stars svg { width: 15px; height: 15px; }
.pp-tuft { position: absolute; width: 44px; height: 30px; margin: -15px 0 0 -22px; pointer-events: none; }
.pp-tuft svg { width: 100%; height: 100%; display: block; }
.pp-stone__gnome { position: absolute; top: -36px; left: 50%; width: 36px; height: 36px; margin-left: -18px; animation: pp-bob 1.6s var(--gg-ease-in-out) infinite; pointer-events: none; }
.pp-stone__gnome svg { width: 100%; height: 100%; }
@keyframes pp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.pp-sign {
  position: absolute; width: 168px; margin-left: -84px; padding: 8px 12px; text-align: center; pointer-events: none;
  border: var(--gg-border); border-radius: var(--gg-r-sm); background: var(--gg-paper); box-shadow: var(--gg-shadow-sm);
}
.pp-sign::after { content: ''; position: absolute; left: 50%; bottom: -16px; width: 6px; height: 14px; margin-left: -3px; background: var(--gg-sand); border: 2px solid var(--gg-ink); border-top: 0; }
.pp-sign b { display: block; font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-md); line-height: 1.1; }
.pp-sign span { display: block; font-size: var(--gg-text-xs); font-weight: 700; color: var(--gg-ink-3); line-height: 1.3; }
.pp-sign.is-locked { background: var(--gg-sand); }
.pp-mapbasket {
  position: absolute; left: 16px; right: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: var(--gg-border); border-radius: var(--gg-r-md); background: var(--gg-paper); box-shadow: var(--gg-shadow-sm);
  font-weight: 700; font-size: var(--gg-text-sm);
}
.pp-mapbasket .pp-ico { width: 32px; height: 32px; }
.pp-bar { flex: 1; height: 10px; border: 2px solid var(--gg-ink); border-radius: var(--gg-r-pill); background: var(--gg-sand); overflow: hidden; }
.pp-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--gg-butter); border-right: 2px solid var(--gg-ink); }

/* ------------------------------------------------------------------ the level */
.pp-game {
  position: fixed; left: 0; right: 0; top: var(--pp-bar, 66px); bottom: 0; z-index: 10;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); background: var(--gg-cream);
}
.pp-hud {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 6px var(--gg-gutter); min-width: 0;
  background: var(--gg-paper); border-bottom: var(--gg-border);
}
.pp-hud__wide, .pp-tray__wide, .pp-tray__label { display: none; }
.pp-goal { display: grid; min-width: 0; flex: 1; line-height: 1.15; }
.pp-goal__lv { font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-md); letter-spacing: -.01em; }
.pp-goal__line { display: flex; align-items: center; gap: 5px; font-size: var(--gg-text-xs); font-weight: 700; color: var(--gg-ink-2); min-width: 0; }
.pp-goal__line > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-goal__line .pp-ico { width: 18px; height: 18px; }
.pp-meter { display: grid; justify-items: end; gap: 3px; width: 128px; flex: none; }
.pp-meter__score { font-family: var(--gg-font-display); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pp-meter__bar { position: relative; width: 100%; height: 12px; border: 2px solid var(--gg-ink); border-radius: var(--gg-r-pill); background: var(--gg-sand); }
.pp-meter__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--gg-butter); border-radius: var(--gg-r-pill); transition: width var(--gg-dur-md) var(--gg-ease-out); }
.pp-meter__star { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; left: var(--x, 50%); }
.pp-meter__star svg { width: 100%; height: 100%; display: block; }

.pp-board { position: relative; overflow: hidden; touch-action: none; min-height: 0; }
.pp-board > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.pp-cancel, .pp-tip {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 5; max-width: calc(100% - 32px); pointer-events: none;
  padding: 8px 16px; border: var(--gg-border); border-radius: var(--gg-r-pill); background: var(--gg-paper); box-shadow: var(--gg-shadow-sm);
  font-weight: 700; font-size: var(--gg-text-sm); line-height: 1.25; text-align: center; white-space: nowrap;
}
.pp-cancel { bottom: 24%; }
.pp-tip { top: 64px; white-space: normal; width: max-content; }

.pp-tray {
  display: flex; align-items: center; gap: 10px; padding: 8px var(--gg-gutter) calc(8px + env(safe-area-inset-bottom)); min-width: 0;
  background: var(--gg-paper); border-top: var(--gg-border);
}
.pp-tray__row { display: flex; gap: 8px; flex: 1; min-width: 0; }
.pp-boost {
  position: relative; width: 56px; height: 52px; flex: none; display: grid; place-items: center; padding: 0; cursor: pointer;
  border: var(--gg-border); border-radius: var(--gg-r-md); background: var(--gg-paper); box-shadow: var(--gg-shadow-sm); touch-action: manipulation;
  transition: transform var(--gg-dur-xs) var(--gg-ease-out), box-shadow var(--gg-dur-xs) ease, opacity var(--gg-dur-sm) ease;
}
.pp-boost svg { width: 30px; height: 30px; }
.pp-boost:active:not(.is-off) { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--gg-ink); }
.pp-boost.is-off { opacity: .45; box-shadow: none; cursor: default; }
.pp-boost.is-on { background: var(--gg-lime-100); }
.pp-boost__n {
  position: absolute; right: -7px; top: -7px; min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center;
  border: 2px solid var(--gg-ink); border-radius: var(--gg-r-pill); background: var(--gg-butter);
  font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-xs); line-height: 1;
}
.pp-boost--empty { border-style: dashed; box-shadow: none; background: transparent; color: var(--gg-ink-3); font-weight: 700; font-size: var(--gg-text-xs); }
.pp-trayinfo { display: grid; line-height: 1.2; font-size: var(--gg-text-xs); font-weight: 700; color: var(--gg-ink-3); }
.pp-trayinfo b { font-family: var(--gg-font-display); font-size: var(--gg-text-lg); color: var(--gg-ink); }
.pp-sun { position: relative; width: 52px; height: 52px; flex: none; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; touch-action: manipulation; }
.pp-sun__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.pp-sun__i { width: 28px; height: 28px; opacity: .5; transition: opacity var(--gg-dur-sm) ease, transform var(--gg-dur-sm) var(--gg-ease-spring); }
.pp-sun.is-full .pp-sun__i { opacity: 1; animation: pp-glow 1.4s var(--gg-ease-in-out) infinite; }
@keyframes pp-glow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14) rotate(12deg); } }
.pp-keys { font-size: var(--gg-text-xs); color: var(--gg-ink-3); line-height: 1.5; }
.pp-keys kbd { font-family: var(--gg-font-body); font-weight: 700; padding: 0 5px; border: 1.5px solid var(--gg-ink-3); border-radius: 5px; background: var(--gg-paper); }

/* desktop: the board centred, two paper panels beside it (Prize Marrow style) */
@media (min-width: 1000px) {
  .pp-game { grid-template-columns: 300px minmax(0, 1fr) 300px; grid-template-rows: minmax(0, 1fr); column-gap: 24px; padding: 20px 32px; }
  .pp-hud, .pp-tray {
    align-self: start; margin-top: 28px; flex-direction: column; align-items: stretch; gap: 14px; padding: var(--gg-s5);
    border: var(--gg-border); border-radius: var(--gg-r-lg); box-shadow: var(--gg-shadow-lg); background: var(--gg-paper);
  }
  .pp-hud { grid-column: 1; grid-row: 1; }
  .pp-board { grid-column: 2; grid-row: 1; }
  .pp-tray { grid-column: 3; grid-row: 1; }
  .pp-hud > #pause { display: none; }
  .pp-hud__wide, .pp-tray__wide { display: grid; gap: 10px; }
  .pp-tray__label { display: block; }
  .pp-goal__lv { font-size: var(--gg-text-2xl); }
  .pp-goal__line { font-size: var(--gg-text-sm); white-space: normal; }
  .pp-goal__line > span:last-child { white-space: normal; }
  .pp-goal__line .pp-ico { width: 24px; height: 24px; }
  .pp-meter { width: 100%; justify-items: start; }
  .pp-meter__score { font-size: 40px; }
  .pp-meter__bar { height: 16px; }
  .pp-meter__star { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
  .pp-hud__note { font-size: var(--gg-text-sm); color: var(--gg-ink-2); font-weight: 600; line-height: 1.45; }
  .pp-hud__note:empty { display: none; }
  .pp-tray__row { flex-wrap: wrap; }
  .pp-sun { width: 64px; height: 64px; }
  .pp-tray__wide .pp-pill { justify-self: start; }
}

/* ------------------------------------------------------------------ modals */
.pp-lc, .pp-out, .pp-rcard, .pp-sheet { width: min(420px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; text-align: center; max-height: calc(100dvh - 40px); overflow-y: auto; overflow-x: hidden; }
.pp-rcard { gap: 10px; }
.pp-rcard .gg-result__title { font-size: var(--gg-text-2xl); }
.pp-rcard .gg-result__line { margin-top: 0; }
.pp-lc h2 { font-size: var(--gg-text-3xl); }
.pp-lc__goal { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 700; font-size: var(--gg-text-md); }
.pp-lc__goal .pp-ico { width: 28px; height: 28px; }
.pp-lc__stars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pp-lc__stars li { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border: 2px solid var(--gg-line); border-radius: var(--gg-r-md); background: var(--gg-cream); font-size: var(--gg-text-xs); font-weight: 700; color: var(--gg-ink-2); line-height: 1.25; }
.pp-lc__stars li span.pp-lcstars { display: flex; }
.pp-lc__stars li svg { width: 20px; height: 20px; }
.pp-lc__bring { display: grid; gap: 8px; }
.pp-lc__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pp-lctile {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 10px; min-height: 52px; cursor: pointer; text-align: left;
  border: var(--gg-border); border-radius: var(--gg-r-md); background: var(--gg-paper); box-shadow: var(--gg-shadow-sm);
  font-family: var(--gg-font-body); font-size: var(--gg-text-xs); font-weight: 700; line-height: 1.15; color: var(--gg-ink); touch-action: manipulation;
}
.pp-lctile svg { width: 30px; height: 30px; }
.pp-lctile[aria-pressed="true"] { background: var(--gg-lime-100); box-shadow: 0 0 0 3px var(--gg-lime), var(--gg-shadow-sm); }
.pp-lctile.is-off { opacity: .5; box-shadow: none; cursor: default; }
.pp-lctile .pp-boost__n { right: -6px; top: -6px; }
.pp-portrait { width: 64px; height: 72px; justify-self: center; }
.pp-out__t { font-weight: 600; color: var(--gg-ink-2); }
.pp-rstars { display: flex; justify-content: center; gap: 6px; min-height: 52px; }
.pp-rstars svg { width: 52px; height: 52px; }
.pp-rscores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 2px 0; }
.pp-rscores .gg-result__score { min-width: 0; padding: 8px 4px; display: grid; justify-items: center; gap: 2px; }
.pp-rscores .gg-result__score b { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 28px; }
.pp-rscores .gg-result__score > span { letter-spacing: .04em; }
.pp-rscores .pp-ico { width: 22px; height: 22px; }
.pp-rrow { justify-content: center; }
.pp-rrow .gg-btn { flex: 1; }
.pp-sheet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-sheet__grid .gg-btn { padding-inline: 10px; font-size: var(--gg-text-sm); }

.pp-shop { width: min(560px, 100%); display: grid; gap: 12px; max-height: calc(100dvh - 40px); overflow-y: auto; padding-top: 0; }
.pp-shop__bench { height: 64px; margin: 0 calc(-1 * var(--gg-s5)); border-bottom: var(--gg-border); border-radius: var(--gg-r-lg) var(--gg-r-lg) 0 0; overflow: hidden; }
.pp-shop__bench canvas { display: block; width: 100%; height: 100%; }
.pp-shop__head { display: flex; align-items: center; gap: 10px; }
.pp-shop__head h2 { flex: 1; font-size: var(--gg-text-xl); }
.pp-shop__tabs { width: 100%; }
.pp-shop__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pp-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top buy" "what what"; align-items: center; column-gap: 10px; row-gap: 6px; padding: 10px 12px; text-align: left;
  border: var(--gg-border); border-radius: var(--gg-r-md); background: var(--gg-paper); box-shadow: var(--gg-shadow-sm);
}
.pp-item__top { display: flex; align-items: center; gap: 8px; }
.pp-item__top svg { width: 32px; height: 32px; flex: none; }
.pp-item__name { font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-md); line-height: 1.1; }
.pp-item__have { font-size: var(--gg-text-xs); font-weight: 700; color: var(--gg-ink-3); }
.pp-item__what { font-size: var(--gg-text-xs); line-height: 1.35; color: var(--gg-ink-2); font-weight: 600; }
.pp-item__buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 12px; cursor: pointer;
  border: var(--gg-border); border-radius: var(--gg-r-pill); background: var(--gg-lime); box-shadow: var(--gg-shadow-sm);
  font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-md); color: var(--gg-ink); touch-action: manipulation;
}
.pp-item__buy .pp-ico { width: 20px; height: 20px; }
.pp-item__buy:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--gg-ink); }
.pp-item__buy.is-poor { background: var(--gg-sand); }
.pp-item.is-locked { background: var(--gg-cream); }
.pp-item__lock { display: flex; align-items: center; gap: 6px; min-height: 44px; font-size: var(--gg-text-xs); font-weight: 700; color: var(--gg-ink-3); }
.pp-item__lock svg { width: 18px; height: 18px; }
.pp-pips { display: flex; gap: 4px; }
.pp-pips i { width: 10px; height: 10px; border: 2px solid var(--gg-ink); border-radius: 50%; background: var(--gg-paper); }
.pp-pips i.is-on { background: var(--gg-butter); }
@media (max-width: 599px) {
  .pp-shopm { place-items: end center; padding: 0; }
  .pp-shop { border-radius: var(--gg-r-lg) var(--gg-r-lg) 0 0; padding-bottom: calc(var(--gg-s5) + env(safe-area-inset-bottom)); max-height: 88dvh; }
  .pp-sheetm { place-items: end center; padding: 0; }
  .pp-sheet { width: 100%; border-radius: var(--gg-r-lg) var(--gg-r-lg) 0 0; padding-bottom: calc(var(--gg-s5) + env(safe-area-inset-bottom)); }
  .pp-shop__list { grid-template-columns: minmax(0, 1fr); }
}

.pp-help { width: min(560px, 100%); display: grid; gap: 12px; max-height: calc(100dvh - 40px); overflow-y: auto; }
.pp-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pp-rules li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--gg-text-sm); line-height: 1.45; color: var(--gg-ink-2); }
.pp-ri { width: 40px; height: 40px; padding: 6px; border: var(--gg-border); border-radius: var(--gg-r-sm); background: var(--gg-green-100); }

/* the placeholder ad card (src/ads.js) */
.pp-ad { width: min(360px, 100%); display: grid; justify-items: center; gap: 10px; text-align: center; }
.pp-ad__clock { position: relative; width: 84px; height: 84px; }
.pp-ad__clock svg { width: 100%; height: 100%; }
.pp-ad__n { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--gg-font-display); font-weight: 800; font-size: 30px; }
.pp-ad__t, .pp-ad__for { font-size: var(--gg-text-sm); color: var(--gg-ink-2); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .pp-stone__gnome, .pp-sun.is-full .pp-sun__i { animation: none; }
}
.pp-hatsw { width: 32px; height: 32px; flex: none; }
.pp-hatsw svg path:first-child { fill: var(--c); }

.pp-item__top { grid-area: top; min-width: 0; }
.pp-item__what { grid-area: what; }
.pp-item > .pp-item__buy, .pp-item > .pp-item__lock, .pp-item > .gg-pill { grid-area: buy; justify-self: end; }
.pp-item__lock { max-width: 150px; text-align: right; line-height: 1.25; }
.pp-rscores .gg-result__score b span { font: inherit; letter-spacing: inherit; text-transform: none; }
.pp-ad h2 { font-size: var(--gg-text-2xl); }

/* ================================================================== round 2 (LOOK-V2.md) */

/* the desktop scenery: the garden's props, large, in the cream margins behind the panels */
.pp-scenery { display: none; }
@media (min-width: 1000px) {
  .pp-scenery { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
  .pp-game > :not(.pp-scenery) { position: relative; z-index: 1; }
}

/* boss HP pips in the HUD goal line */
.pp-hp { display: inline-flex; gap: 2px; vertical-align: middle; margin-left: 3px; }
.pp-hp i { width: 9px; height: 9px; border: 2px solid var(--gg-ink); border-radius: 50%; background: var(--gg-sand); }
.pp-hp i.is-on { background: var(--gg-butter); }
@media (min-width: 1000px) { .pp-hp i { width: 14px; height: 14px; } }

/* the level card twist row */
.pp-twist { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; padding: 8px 10px; border: 2px solid var(--gg-line); border-radius: var(--gg-r-md); background: var(--gg-cream); }
.pp-twist__chip { width: 56px; height: 56px; }
.pp-twist__t { display: grid; line-height: 1.3; }
.pp-twist__t b { font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-md); }
.pp-twist__t span { font-size: var(--gg-text-sm); font-weight: 600; color: var(--gg-ink-2); }

/* New in this garden */
.pp-np { width: min(380px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; text-align: center; justify-items: center; }
.pp-np__cv { width: 120px; height: 120px; }
.pp-np__t { font-weight: 600; color: var(--gg-ink-2); }
.pp-np__t2 { margin-top: -6px; font-size: var(--gg-text-sm); }

/* today's gift chip (start card) and the Jobs pill (map header) */
.pp-giftchip {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 6px 14px 6px 8px; cursor: pointer; text-align: left;
  border: var(--gg-border); border-radius: var(--gg-r-md); background: var(--gg-paper); box-shadow: var(--gg-shadow-sm); color: var(--gg-ink);
  font-family: var(--gg-font-body); touch-action: manipulation;
}
.pp-giftchip:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--gg-ink); }
.pp-giftchip__packet, .pp-packet { width: 36px; height: 42px; flex: none; position: relative; border: 2px solid var(--gg-ink); border-radius: 4px 4px 6px 6px; background: var(--gg-butter-100); }
.pp-giftchip__packet::before, .pp-packet::before { content: ''; position: absolute; left: 6px; right: 6px; top: 10px; height: 14px; border-radius: 50%; border: 2px solid var(--gg-ink); background: var(--gg-suit-red); }
.pp-giftchip__packet::after, .pp-packet::after { content: ''; position: absolute; left: -2px; right: -2px; top: -2px; height: 6px; border: 2px solid var(--gg-ink); border-radius: 3px; background: var(--gg-sand); }
.pp-giftchip.is-ready .pp-giftchip__packet { animation: pp-wiggle 4s var(--gg-ease-in-out) infinite; }
@keyframes pp-wiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-9deg); } 94% { transform: rotate(8deg); } 97% { transform: rotate(-4deg); } }
.pp-giftchip__t { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.pp-giftchip__t b { font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-md); }
.pp-giftchip__t span { font-size: var(--gg-text-xs); font-weight: 700; color: var(--gg-ink-3); }
.pp-giftchip__jobs { font-size: var(--gg-text-sm); font-weight: 700; padding: 4px 10px; border: 2px solid var(--gg-ink); border-radius: var(--gg-r-pill); background: var(--gg-cream); white-space: nowrap; }
.pp-giftchip__jobs:empty { display: none; }
.pp-jobspill { cursor: pointer; font-size: var(--gg-text-sm); padding: 0 10px 0 6px; }
.pp-jobspill.is-ready { background: var(--gg-lime-100); }
@media (max-width: 420px) { .pp-maphead .pp-pill { height: 34px; padding: 0 8px 0 6px; font-size: var(--gg-text-sm); } .pp-maphead { gap: 8px; } .pp-maphead__t h2 { font-size: var(--gg-text-lg); } }

/* the gift sheet */
.pp-gift { text-align: left; }
.pp-gift__head { display: flex; align-items: center; justify-content: space-between; }
.pp-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.pp-day { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 2px solid var(--gg-line); border-radius: var(--gg-r-sm); background: var(--gg-cream); }
.pp-day__n { font-size: var(--gg-text-xs); font-weight: 700; color: var(--gg-ink-3); white-space: nowrap; }
.pp-day__i { width: 24px; height: 24px; }
.pp-day__i svg { width: 100%; height: 100%; }
.pp-day.is-done { background: var(--gg-lime-100); border-color: var(--gg-green-600); }
.pp-day.is-today { border-color: var(--gg-ink); background: var(--gg-butter-100); box-shadow: var(--gg-shadow-sm); }
.pp-gift__open { display: flex; align-items: center; gap: 14px; justify-content: center; padding: 6px 0; }
.pp-packet { width: 52px; height: 62px; transition: transform var(--gg-dur-md) var(--gg-ease-spring); }
.pp-packet.is-open { transform: scale(1.15) rotate(-6deg); }
.pp-packet.is-open::after { transform: translateY(-10px) rotate(-14deg); transition: transform var(--gg-dur-sm) var(--gg-ease-out); }
.pp-gift__what { display: grid; line-height: 1.2; }
.pp-gift__what b { font-family: var(--gg-font-display); font-weight: 800; font-size: var(--gg-text-xl); }
.pp-gift__what span { font-size: var(--gg-text-sm); color: var(--gg-ink-3); font-weight: 700; }
.pp-jobs__h { margin-top: 4px; }
.pp-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pp-job { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: var(--gg-border); border-radius: var(--gg-r-md); background: var(--gg-paper); }
.pp-job.is-done { background: var(--gg-lime-100); }
.pp-job__i svg { width: 28px; height: 28px; display: block; }
.pp-job__t { display: grid; gap: 4px; min-width: 0; }
.pp-job__t b { font-size: var(--gg-text-sm); font-weight: 700; line-height: 1.3; }
.pp-job__r { font-size: var(--gg-text-xs); font-weight: 700; text-align: right; line-height: 1.3; }
.pp-job__r small { font-size: var(--gg-text-xs); color: var(--gg-ink-3); font-weight: 600; }

/* results: Next, and the job that moved */
.pp-rnext { font-size: var(--gg-text-sm); color: var(--gg-ink-2); font-weight: 600; padding: 8px 12px; border: 2px dashed var(--gg-line); border-radius: var(--gg-r-md); }
.pp-rnext b { color: var(--gg-ink); }
.pp-rquest { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; }
.pp-rquest .pp-ico { width: 26px; height: 26px; }
.pp-rquest__t { display: grid; gap: 4px; font-size: var(--gg-text-sm); }
.pp-rquest__n { font-weight: 700; font-size: var(--gg-text-sm); }

/* the map: garden bands, props, gates, signposts, the boss pill, the Replanted sprout */
.pp-band { position: absolute; left: calc(50% - 50vw); width: 100vw; }
.pp-band.is-veiled { background: var(--gg-cream) !important; }
.pp-bandprops { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: min(520px, 100vw); height: 100%; pointer-events: none; }
.pp-gate { position: absolute; left: 0; right: 0; height: 28px; display: flex; justify-content: center; perspective: 300px; pointer-events: none; }
.pp-gate i { width: 50%; max-width: 260px; height: 28px; border: 2px solid var(--gg-ink); background: repeating-linear-gradient(90deg, var(--gg-sand) 0 10px, var(--gg-ink-3) 10px 12px); transition: transform var(--gg-dur-lg) var(--gg-ease-soft); }
.pp-gate i:first-child { transform-origin: left center; border-radius: 4px 0 0 4px; }
.pp-gate i:last-child { transform-origin: right center; border-radius: 0 4px 4px 0; }
.pp-gate.is-open i:first-child { transform: rotateY(-80deg); }
.pp-gate.is-open i:last-child { transform: rotateY(80deg); }
.pp-sign--bamboo { background: var(--gg-butter-100); }
.pp-sign--iron, .pp-sign--enamel { background: var(--gg-paper); border-radius: var(--gg-r-pill); }
.pp-sign--chalk { background: var(--gg-ink-2); }
.pp-sign--chalk b, .pp-sign--chalk span { color: var(--gg-paper); }
.pp-sign--brick { background: var(--gg-sand); }
.pp-sign--stone { background: var(--gg-cream); border-radius: 4px; }
.pp-sign--branch { transform: rotate(-3deg); }
.pp-sign.is-locked { background: var(--gg-sand); }
.pp-sign.is-locked b, .pp-sign.is-locked span { color: var(--gg-ink-3); }
.pp-stone.is-boss:not(.is-locked) { box-shadow: 0 0 0 3px var(--gg-butter), var(--gg-shadow-sm); }
.pp-sprout { position: absolute; left: -10px; top: -12px; width: 26px; height: 26px; }
.pp-sprout svg { width: 100%; height: 100%; }
.pp-bosspill { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; white-space: nowrap; pointer-events: none;
  border: 2px solid var(--gg-ink); border-radius: var(--gg-r-pill); background: var(--gg-paper); box-shadow: var(--gg-shadow-sm); font-size: var(--gg-text-xs); font-weight: 700; }
.pp-bosspill svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .pp-giftchip.is-ready .pp-giftchip__packet { animation: none; } .pp-gate i { transition: none; } }
@media (max-width: 420px) { .pp-meter { width: 108px; } .pp-hud { gap: 8px; } }
@media (max-width: 420px) { .pp-maphead__t .gg-eyebrow { display: none; } }

/* round 3: point at the help (head start on a loss, a boss booster line on the level card) */
.pp-rhelp { display: grid; gap: 8px; padding: 12px; border: var(--gg-border); border-radius: var(--gg-r-md); background: var(--gg-butter-100); }
.pp-rhelp__t { margin: 0; display: flex; gap: 10px; align-items: center; justify-content: center; font-size: var(--gg-text-sm); font-weight: 700; line-height: 1.35; text-align: left; color: var(--gg-ink); }
.pp-rhelp__t .pp-ico { width: 28px; height: 28px; flex: none; }
.pp-rhelp .gg-btn { min-height: 48px; white-space: nowrap; }
.pp-bosstip {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 48px;
  padding: 8px 12px; border: 2px dashed var(--gg-line); border-radius: var(--gg-r-md); background: var(--gg-paper); color: var(--gg-ink);
  font: inherit; font-size: var(--gg-text-sm); font-weight: 600; line-height: 1.3; text-align: left; cursor: pointer; touch-action: manipulation;
}
.pp-bosstip .pp-ico { width: 28px; height: 28px; }
.pp-bosstip b { padding: 4px 10px; border: var(--gg-border); border-radius: var(--gg-r-pill); background: var(--gg-lime); white-space: nowrap; }
.pp-bosstip.is-on b { background: var(--gg-paper); }
.pp-tip.is-low { top: auto; bottom: 22%; }
