/* =========================================================
   BETTY'S POLLEN DASH — game styles
   (hero card, how-to, crew, and the game itself)
   ========================================================= */
  /* ===== BETTY HERO: pill, title flower, chips, bosses, character card ===== */
  .bpd-original-pill{display:inline-block;margin-bottom:10px;padding:4px 12px;border:2px solid var(--ink);border-radius:999px;background:#fff;color:var(--blue-dark);font-size:.78rem;font-weight:900;box-shadow:0 2px 0 var(--ink)}
  .bpd-hero-flower{width:64px;height:auto;margin-bottom:10px;image-rendering:pixelated;transform:rotate(-12deg);filter:drop-shadow(0 3px 0 rgba(26,26,26,.18))}
  .bpd-hero-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
  .bpd-hero-chips span{padding:5px 11px;border:2px solid var(--ink);border-radius:999px;background:#fff;font-size:.8rem;font-weight:800;box-shadow:0 2px 0 var(--ink)}
  .bpd-hero-bosses{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:.88rem;font-weight:800}
  .bpd-hero-bosses img{height:38px;width:auto;image-rendering:pixelated}
  .bpd-char-card{width:250px;margin-right:10px;padding:12px;border:3px solid var(--ink);border-radius:20px;background:linear-gradient(160deg,#fef9c3,#fde68a 60%,#fbbf24);box-shadow:0 6px 0 var(--ink);transform:rotate(2.5deg)}
  .bpd-char-portrait{position:relative;display:flex;align-items:flex-end;justify-content:center;height:150px;overflow:hidden;border:3px solid var(--ink);border-radius:14px;background:#56b03e url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAmCAIAAAC9EKlkAAAFYElEQVR42u1aX2hbVRg/9+pSlxaakE5Mbto8KJg82EH/DMNsy/aggz0ofVAxm9hNnS1Cn/YiqMWHIs6XQk0bcPOhSdWXObUPqQ+DJcUMtkW4wtKBFbp6O1iTruJSaGcXH77sy+c55+YPrl0l96MPJ9/9zu/8zu9833duQpXwtU1mWXWmWhJUb4/Xz1YHO/bgeCJ972GKNeg4XsRdm9pJQtstE/XUylCR9qyiUq4+lrtUpV4iod0jmRm3WhlKxCopBVadXg+L0DbZEZ/cH1+spQyb98p6PCr1IL/kYcSmM1vBJ+9LH6VuqxWnb7elbsv9zXv/e8/KXeIyqzpCO6HIG4HH8Hh2WHEldv1vCaGGEO1Z0xuxXdKqueTdmeOpIFZJr92k1CM3U7EskzX4JxRLBevrjiXW9tsHX3Wb9qyZ37csgcw0Gh24YoklV2rf0/uoc2VhhdNLmVu+X+dKDU10gVK9z/YwxhI3kpxe4cGrVs8qGZdTZn5VKnO9pRVY4kaSppUYUyrDoYkuFHJlYQVzrx70MsssTgqVToCihfSrqxSD3lTRr+jZwrGxTrO7IDp8rR7EqlIBRc8WIFoM/b8r9dNvH5UPePGZTzi9OOMUKIrF6VWTUhU5Sck9Qo3KcPvmxHMz+21me1f0bAHRV0e/m9lve/PoURrR0vZnh22MetKbwx22sfTmcPZmM8bgmDF2M2vAoKOjKZ2+29aiiTG1CgeLfnn5JHW+/fxZGsAYk9KgZBhjwEekBAowxl4/96tcrM8vf7jUoBcMF2NM0XKNHy/cffeAouUKhkvRcowxeFSM1nIwaN1oh8FSg9660b7UoIuRHAKMMRgHHNrJ1gsIcnbpFRxTNARHJ6DRhei6XDB+bGvRYBb1S9cqbmr4l5etl9Jqf8+6tXiHMba2vO7w2M2C3D4nhHGR4F9bXmeMOTx2eMRB4VxxohRWGo+zMilDXAIN/BxCma1RAmXYIrjy6oXe8igioqiaFNpMPimC9CmeQSCocRzKzBUXrSm4jBQqcOIskyq1RswdnAwDOEPcFVp/bJYmGmMsENTQjxTxKfgRlsoEAQ6PHU+bMWbocXDCLFwd8XEWAkqFiIzbpMFTyXlKhh6SSuV3+5wQFwhqVAiIgTEtHNAUdwWMX/v0LdQL16N+t88pxlNYs1xzeOyGHp8LDYBecKioOOKbJSkdRMZtjogL9KI2lZy3DR36LJqSIsjL0KyMQUexIqi/PzZ77lAPfKRa98dmz4deEktA9JepF8gsrf2IWFyIU7G64Wlk3DZyppHuBR5NJeeP9/ils1SzQ+DyEKKxIsR6Qf+o/yAKR5Nu1H9QzBTRb5ZZiPPXvRekiiAOvUY4QDruC67SJMB877Z7RQ7QSVQzToBi6HGxEg09DjyoM+rNwCx/Z1MmZUAAzXN/ZxMMwpMhIAd/6BePDSI5u3jlFOUJq0fGbU+5+b2MnM6DBLh5h8c+c2ARZuG6UN142P7OJpgCxQ4bgSpRy5xqPpuYCw3kswmxa1z98WvqjHoze5yHo94MKntr8Q7tC4gcngy5vrgYngwBOXqTcDb9wzsQSdMEp9O8hoW+Pe+grQOcoFfpu94DnjQnaB8EzLXlddg7igiil3qW9PrPZxPQIKRd41/fOb2ZY38ExBvn1Pv8f+mEJ0ND78UqNhezSOrEeseF8FUgENRGTuehK9GXuDNbP4s8pTsy9HhjSy+92VXujYbLL2gQtG7BKVZ11/ettP7hPPuCq2LLONwdoSmAi4qYNBIR0EkbZV9wlWrq8NgzKQOdtP9SntJtUieeEAwq34bSV2dpUpi9vtb0LlplTDUgtRIrD+72Of8BYlkA0LaDF9AAAAAASUVORK5CYII=") center bottom / cover no-repeat;image-rendering:pixelated}
  .bpd-char-portrait .bpd-char-betty{width:120px;height:120px;margin-bottom:22px;image-rendering:pixelated;animation:bpdBeeBob 2s ease-in-out infinite}
  .bpd-char-portrait .bpd-char-flower{position:absolute;bottom:8px;width:34px;height:34px;image-rendering:pixelated}
  .bpd-char-plate{margin-top:8px;text-align:center;line-height:1.25}
  .bpd-char-plate b{display:block;font-size:1.15rem;font-weight:900;letter-spacing:.06em}
  .bpd-char-plate small{color:var(--blue-dark);font-size:.74rem;font-weight:800}
  .bpd-char-stats{display:grid;grid-template-columns:auto 1fr;gap:0 10px;margin:8px 4px 0;font-size:.76rem;font-weight:800}
  .bpd-char-stats dt{margin:0}
  .bpd-char-stats dd{margin:0;color:#c2410c;letter-spacing:1px;text-align:right}
  @media (max-width:900px){.bpd-char-card{justify-self:center;margin:6px 0 0}}
  @media (max-width:420px){.bpd-hero-flower{width:48px}}
  @media (prefers-reduced-motion: reduce){.bpd-char-portrait .bpd-char-betty{animation:none}}


  /* ===== HOW TO PLAY drop-down + four-step mini scenes ===== */
  .bpd-howto{width:100%;margin:18px 0 0;overflow:hidden;border:3px solid var(--ink);border-radius:16px;background:repeating-linear-gradient(135deg,rgba(2,132,199,.025)0 1px,transparent 1px 8px),linear-gradient(180deg,#fff 0,#f2faff 100%);box-shadow:0 4px 0 var(--ink),0 12px 22px rgba(2,132,199,.13)}.bpd-howto summary{list-style:none;display:grid;grid-template-columns:44px minmax(0,1fr) 34px;align-items:center;gap:12px;min-height:66px;padding:10px 12px;cursor:pointer;user-select:none}.bpd-howto summary::-webkit-details-marker{display:none}.bpd-howto summary::marker{content:""}.bpd-howto-icon{width:42px;height:42px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:11px;color:#fff;background:linear-gradient(180deg,#38bdf8 0,#0284c7 58%,#0369a1 100%);box-shadow:0 3px 0 var(--ink),inset 0 1px 0 rgba(255,255,255,.42);font-size:1.18rem}.bpd-howto-summary-copy{min-width:0;display:flex;flex-direction:column;gap:1px}.bpd-howto-summary-copy strong{color:var(--ink);font-size:.9rem;line-height:1.2}.bpd-howto-summary-copy span{color:var(--muted);font-size:.7rem;font-weight:700;line-height:1.25}.bpd-howto-chevron{width:30px;height:30px;display:grid;place-items:center;justify-self:end;border:2px solid var(--ink);border-radius:50%;color:#fff;background:var(--blue);box-shadow:0 2px 0 var(--ink);font-size:.9rem;font-weight:1000;line-height:1;transition:transform .2s ease}.bpd-howto[open] .bpd-howto-chevron{transform:rotate(180deg)}.bpd-howto[open] summary{border-bottom:2px solid var(--ink);background:rgba(224,242,254,.55)}.bpd-howto-body{padding:16px;color:var(--muted);line-height:1.55}.bpd-howto-intro{margin:0 0 13px}.bpd-howto-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bpd-howto-tip{padding:11px 12px;border:1px solid #bae6fd;border-radius:11px;background:#fff;box-shadow:0 3px 8px rgba(15,23,42,.05);font-size:.78rem;line-height:1.45}.bpd-howto-tip strong{color:var(--blue-dark)}.bpd-howto kbd{padding:1px 6px;border:1px solid var(--line);border-radius:5px;background:#f8f9fa;font-family:inherit;font-size:.76rem;font-weight:800}@media (max-width:640px){.bpd-howto summary{grid-template-columns:40px minmax(0,1fr) 30px;gap:9px;padding:9px 10px}.bpd-howto-icon{width:38px;height:38px}.bpd-howto-summary-copy span{font-size:.66rem}.bpd-howto-grid{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){.bpd-howto-chevron{transition:none}}.bpd-mini-guide .pnc-tool-guide-icon{width:150px;height:92px;overflow:hidden;position:relative;isolation:isolate}.bpd-mini-scene{display:flex;align-items:center;justify-content:center}.bpd-mini-scene img{image-rendering:pixelated}.bpd-mini-difficulty{gap:5px}.bpd-mini-difficulty span{min-width:41px;padding:7px 3px 6px;border:2px solid var(--ink);border-radius:9px;color:#475569;background:#fff;box-shadow:0 2px 0 var(--ink);font-size:.58rem;font-weight:900;line-height:1;text-align:center}.bpd-mini-difficulty span:first-child{color:#fff;background:linear-gradient(180deg,#38bdf8,#0284c7);animation:bpdMiniChoice 3s ease-in-out infinite}.bpd-mini-difficulty b{display:block;margin-bottom:4px;font-size:.88rem}@keyframes bpdMiniChoice{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}
  .bpd-mini-field{position:relative;width:112px;height:78px;overflow:hidden;border:3px solid var(--ink);border-radius:9px}
  .bpd-mini-field img{position:absolute}
  .bpd-mini-garden{background:linear-gradient(180deg,#bfe3ff 0 58%,#6fcf4f 58% 66%,#4a9a3c 66%)}
  .bpd-mini-garden .f1{left:8px;top:40px;width:24px}.bpd-mini-garden .f2{left:44px;top:40px;width:24px;animation:bpdMiniPluck 3s ease-in-out infinite}.bpd-mini-garden .f3{left:80px;top:40px;width:24px}
  .bpd-mini-garden .bee{left:40px;top:2px;width:32px;animation:bpdMiniDive 3s ease-in-out infinite}
  .bpd-mini-lanes{background:repeating-linear-gradient(180deg,#eef6fc 0 24px,#c9d8e6 24px 26px)}
  .bpd-mini-lanes .truck{top:28px;width:56px;animation:bpdMiniDrive 2.6s linear infinite}
  .bpd-mini-lanes .bee{left:40px;width:30px;animation:bpdMiniCross 2.6s steps(1) infinite}
  .bpd-mini-hive{background:linear-gradient(180deg,#f2a626 0 30px,#1c1730 30px)}
  .bpd-mini-hive::before{content:"";position:absolute;left:0;right:0;top:0;height:30px;background:radial-gradient(circle at 6px 8px,#fbbf24 0 5px,transparent 6px) 0 0/14px 14px,radial-gradient(circle at 13px 15px,#fbbf24 0 5px,transparent 6px) 0 0/14px 14px;opacity:.7}
  .bpd-mini-hive .machine{left:40px;top:0;width:30px;animation:bpdMiniGlow 2.4s ease-in-out infinite}
  .bpd-mini-hive .bee{left:40px;width:30px;animation:bpdMiniRise 2.4s ease-in-out infinite}
  .bpd-mini-hive .bpd-mini-trophy{position:absolute;right:4px;bottom:6px;width:26px;height:26px;display:grid;place-items:center;border:2px solid var(--ink);border-radius:50%;background:#fde68a;box-shadow:0 2px 0 var(--ink);font-size:.85rem;animation:bpdMiniWin 2.4s ease-in-out infinite}
  @keyframes bpdMiniDive{0%,15%{transform:translateY(0)}45%,60%{transform:translateY(24px)}90%,to{transform:translateY(-4px)}}
  @keyframes bpdMiniPluck{0%,50%{transform:translateY(0);opacity:1}62%{transform:translateY(-6px)}75%{transform:translateY(-34px);opacity:0}76%,90%{transform:translateY(0);opacity:0}to{opacity:1}}
  @keyframes bpdMiniDrive{0%{left:-60px}60%,to{left:116px}}
  @keyframes bpdMiniCross{0%{top:50px}62%{top:26px}80%{top:2px}}
  @keyframes bpdMiniRise{0%{top:48px}45%,70%{top:22px}to{top:48px}}
  @keyframes bpdMiniGlow{0%,40%{filter:none}55%,70%{filter:brightness(1.4) drop-shadow(0 0 6px #fde047)}to{filter:none}}
  @keyframes bpdMiniWin{0%,to{transform:scale(.9) rotate(-6deg)}50%{transform:scale(1.08) rotate(6deg)}}
  @media (prefers-reduced-motion:reduce){.bpd-mini-guide *{animation:none!important}}
  .bpd-howto{margin-top:22px}

  /* ===== MEET THE POLLEN CREW (same design as Gearbo's Digging Crew) ===== */
  .bpd-crew-section{margin:48px 0 0}
  .bpd-crew-intro{margin:0 0 18px;text-align:center}
  .bpd-crew-intro h2{margin:0;color:var(--ink);font-size:clamp(1.8rem,3.6vw,2.7rem);line-height:1.08;letter-spacing:-.045em}
  .bpd-crew-intro p{max-width:720px;margin:8px auto 0;color:var(--muted);font-size:1rem;line-height:1.55}
  .bpd-crew{margin-top:34px;overflow:hidden;border:3px solid var(--ink);border-radius:20px;background:linear-gradient(180deg,#fff 0,#f8fdff 60%,#eef9ff 100%);box-shadow:inset 0 2px 0 rgba(255,255,255,.95),0 5px 0 var(--ink),0 18px 32px rgba(15,23,42,.12)}.bpd-crew-top{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:14px 22px 18px;border-bottom:3px solid var(--ink);background:linear-gradient(180deg,#bfe3ff 0 78%,#5cbf4a 78% 100%)}.bpd-crew-top h2{margin:0;color:#fff;font-size:clamp(1.4rem,3vw,2rem);font-weight:900;letter-spacing:-.01em;text-shadow:0 3px 0 var(--ink),2px 0 0 var(--ink),-2px 0 0 var(--ink),0-2px 0 var(--ink)}.bpd-crew-controls{display:flex;align-items:center;gap:12px}.bpd-crew-dots{display:flex;gap:7px}.bpd-crew-dots button{width:13px;height:13px;padding:0;border:2px solid var(--ink);border-radius:50%;background:#fff;cursor:pointer}.bpd-crew-dots button.is-on{background:#f2a626;transform:scale(1.15)}.bpd-crew-replay{padding:5px 12px;border:2px solid var(--ink);border-radius:999px;background:#fff;font:inherit;font-size:.8rem;font-weight:800;cursor:pointer;box-shadow:0 2px 0 var(--ink)}.bpd-crew-stage{min-height:330px;padding:18px 26px 24px}.bpd-crew-page-title{margin:0 0 14px;font-size:1.1rem;font-weight:900;color:var(--blue-dark);letter-spacing:.02em;animation:bpdCrewTitle .35s ease-out both}.bpd-crew-page-title small{display:block;margin-top:2px;color:var(--muted);font-size:.82rem;font-weight:700;font-style:italic}@keyframes bpdCrewTitle{0%{opacity:0;transform:translateY(-6px)}}.bpd-crew-rows{display:grid;gap:10px}.bpd-crew-rows.is-cols{grid-template-columns:1fr 1fr;column-gap:34px}.bpd-crew-row{display:grid;grid-template-columns:52px auto 1fr auto;align-items:center;gap:12px;min-height:52px}.bpd-crew-pic{display:flex;align-items:center;justify-content:center;width:52px;height:52px;animation:bpdCrewWalk .55s steps(6) calc(var(--i)*var(--step)) both}.bpd-crew-pic img{width:48px;height:48px;image-rendering:pixelated;animation:bpdCrewBob .3s steps(2) calc(var(--i)*var(--step))2}.bpd-crew-pic img.is-smooth{image-rendering:auto;object-fit:contain}.bpd-crew-emoji{font-size:1.9rem}.bpd-crew-name{display:flex;flex-direction:column;animation:bpdCrewPop .3s ease-out calc(var(--i)*var(--step) + 380ms) both}.bpd-crew-name b{font-size:.95rem;font-weight:900;letter-spacing:.06em}.bpd-crew-name small{color:var(--muted);font-size:.8rem;font-weight:600;line-height:1.35}.bpd-crew-dots-line{height:0;border-bottom:3px dotted #c9d3df;margin-top:4px;animation:bpdCrewLine .35s ease-out calc(var(--i)*var(--step) + 420ms) both;transform-origin:left}.bpd-crew-pts{min-width:54px;padding:3px 10px;border:2px solid var(--ink);border-radius:999px;background:linear-gradient(180deg,#fde68a,#f2a626);text-align:center;font-weight:900;font-size:.9rem;white-space:nowrap;box-shadow:0 2px 0 var(--ink);animation:bpdCrewPts .35s cubic-bezier(.3,1.6,.5,1) calc(var(--i)*var(--step) + 520ms) both}.bpd-crew-row.is-bad .bpd-crew-pts{background:linear-gradient(180deg,#fecaca,#f87171)}.bpd-crew-row.is-big{grid-template-columns:96px auto 1fr auto;min-height:96px}.bpd-crew-row.is-big .bpd-crew-pic{width:96px;height:96px}.bpd-crew-row.is-big .bpd-crew-pic img{width:92px;height:92px}.bpd-crew-row.is-big .bpd-crew-name b{font-size:1.2rem}@keyframes bpdCrewWalk{0%{opacity:0;transform:translateX(160px)}20%{opacity:1}}@keyframes bpdCrewBob{50%{transform:translateY(-3px)}}@keyframes bpdCrewPop{0%{opacity:0;transform:translateY(6px)}}@keyframes bpdCrewLine{0%{transform:scaleX(0)}}@keyframes bpdCrewPts{0%{opacity:0;transform:scale(.4)}}.bpd-crew-stage.is-boss .bpd-crew-row{min-height:72px;grid-template-columns:80px auto 1fr auto}.bpd-crew-stage.is-boss .bpd-crew-pic{width:80px;height:72px}.bpd-crew-stage.is-boss .bpd-crew-pic img{width:76px;height:76px;animation:bpdCrewReveal 1.1s steps(1) calc(var(--i)*var(--step) + 200ms) both}.bpd-crew-stage.is-boss .bpd-crew-name,.bpd-crew-stage.is-boss .bpd-crew-dots-line,.bpd-crew-stage.is-boss .bpd-crew-pts{animation-delay:calc(var(--i)*var(--step) + 1100ms)}@keyframes bpdCrewReveal{0%{filter:brightness(0)}70%{filter:brightness(0)}78%{filter:brightness(3) saturate(0)}to{filter:none}}.bpd-crew-stage.is-guest .bpd-crew-pts{background:linear-gradient(180deg,#fecaca,#ef4444);color:#fff}.bpd-crew-stage.is-still *{animation:none!important}@media (max-width:760px){.bpd-crew-rows.is-cols{grid-template-columns:1fr}.bpd-crew-stage{min-height:600px;padding:16px}.bpd-crew-row{grid-template-columns:44px 1fr auto}.bpd-crew-row .bpd-crew-dots-line{display:none}.bpd-crew-row.is-big,.bpd-crew-stage.is-boss .bpd-crew-row{grid-template-columns:72px 1fr auto}.bpd-crew-row.is-big .bpd-crew-pic,.bpd-crew-stage.is-boss .bpd-crew-pic{width:72px;height:72px}.bpd-crew-row.is-big .bpd-crew-pic img,.bpd-crew-stage.is-boss .bpd-crew-pic img{width:68px;height:68px}}
  .bpd-crew-top{background:linear-gradient(180deg,#bfe3ff 0 78%,#6fcf4f 78% 100%)}
  .bpd-crew-pic img{object-fit:contain}

  /* ---------- game box (same layout as Gearbo Digs!) ---------- */
  .bpd-app {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 268px;
    grid-template-areas: "hud hud" "main pad" "main stats";
    grid-template-rows: auto auto 1fr;
    gap: 18px; padding: 18px;
    border: 3px solid var(--ink); border-radius: 20px;
    background:
      repeating-linear-gradient(135deg, rgba(2,132,199,.025) 0 1px, transparent 1px 8px),
      linear-gradient(180deg, #fff 0%, #f8fdff 58%, #eef9ff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 5px 0 var(--ink), 0 18px 32px rgba(2,132,199,.12);
  }
  .bpd-hud { grid-area: hud; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
  .bpd-level-name { margin: 0; font-size: 1.12rem; font-weight: 900; letter-spacing: -.02em; }
  .bpd-level-name span { color: var(--blue); }
  .bpd-hud-right { display: flex; gap: 8px; flex-wrap: wrap; }
  .bpd-main { grid-area: main; min-width: 0; }
  .bpd-panel { padding: 13px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 0 3px 0 var(--ink); }
  .bpd-panel h3 { margin: 0 0 10px; font-size: .86rem; font-weight: 900; }
  .bpd-panel-pad { grid-area: pad; position: relative; }
  .bpd-ctrl-head { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .bpd-ctrl-head h3 { margin: 0; }
  .bpd-help-btn { width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); background: linear-gradient(180deg,#fde68a,#f2a626); box-shadow: 0 2px 0 var(--ink); font: inherit; font-size: .9rem; font-weight: 1000; line-height: 1; cursor: pointer; }
  .bpd-help-btn:active, .bpd-help-btn[aria-expanded="true"] { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
  .bpd-help-btn:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }
  .bpd-help { position: absolute; z-index: 40; top: calc(100% + 12px); right: -6px; width: 252px; padding: 10px 12px; border: 3px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 0 4px 0 var(--ink), 0 10px 20px rgba(15,23,42,.18); animation: bpdIn .18s ease-out; }
  .bpd-help[hidden] { display: none; }
  .bpd-help::before { content: ""; position: absolute; top: -11px; right: 12px; width: 16px; height: 16px; border-left: 3px solid var(--ink); border-top: 3px solid var(--ink); background: #fff; transform: rotate(45deg); }
  .bpd-help ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
  .bpd-help li { display: flex; align-items: center; gap: 8px; color: #334155; font-size: .8rem; font-weight: 700; line-height: 1.3; }
  .bpd-help-ic { flex: none; min-width: 70px; text-align: center; font-size: .78rem; }
  .bpd-help kbd { display: inline-block; min-width: 20px; margin: 0 1px; padding: 1px 5px; border: 1.5px solid var(--ink); border-radius: 5px; background: #fff; box-shadow: 0 1.5px 0 var(--ink); font: inherit; font-size: .7rem; font-weight: 800; text-align: center; }
  .bpd-help-touch { display: none !important; }
  @media (hover: none) { .bpd-help-keys { display: none !important; } .bpd-help-touch { display: grid !important; } }
  .bpd-panel-stats { grid-area: stats; align-self: start; }
  .bpd-note { margin: 9px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.6; text-align: center; }
  .bpd-note kbd {
    display: inline-block; min-width: 20px; padding: 1px 5px;
    border: 1.5px solid var(--ink); border-radius: 5px; background: #fff; box-shadow: 0 1.5px 0 var(--ink);
    font: inherit; font-size: .68rem; font-weight: 800;
  }

  .bpd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .bpd-meter { min-width: 0; padding: 7px 6px 6px; border: 2px solid var(--ink); border-radius: 10px; background: linear-gradient(180deg,#fff,#e6f3fb); box-shadow: 0 2px 0 var(--ink); text-align: center; }
  .bpd-meter.is-wide { grid-column: 1 / -1; }
  .bpd-meter-label { display: block; color: var(--blue-dark); font-size: .6rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
  .bpd-meter-value { display: block; font-size: 1.2rem; font-weight: 900; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
  #hudWings.is-bump { animation: bpdBump .45s ease-out; }
  @keyframes bpdBump { 40% { transform: scale(1.25); } }
  .bpd-wilt { position: relative; height: 14px; margin-top: 5px; overflow: hidden; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
  .bpd-wilt i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--flower, #5cbf4a); box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); }
  .bpd-wilt.is-low i { animation: bpdLow .5s steps(2) infinite; }
  @keyframes bpdLow { 50% { opacity: .35; } }
  .bpd-swatch { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border: 1.5px solid var(--ink); border-radius: 50%; vertical-align: -1px; }
  .bpd-wilt-text { display: block; margin-top: 3px; color: var(--muted); font-size: .68rem; font-weight: 800; }

  .bpd-stage {
    position: relative; width: 100%; aspect-ratio: 22 / 16; overflow: hidden;
    border: 3px solid var(--ink); border-radius: 14px; background: #000;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); touch-action: none;
  }
  .bpd-stage canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
  .bpd-toast {
    position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    max-width: calc(100% - 20px); padding: 6px 14px;
    border: 2px solid var(--ink); border-radius: 10px; background: #fff; box-shadow: 0 3px 0 var(--ink);
    color: var(--blue-dark); font-size: .9rem; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    opacity: 0; transition: opacity .25s; pointer-events: none;
  }
  .bpd-toast.is-showing { opacity: 1; }
  /* messages sit just under the board so they never cover the game */
  .bpd-msgbar { position: relative; height: 40px; margin-top: 10px; }

  .bpd-overlay[hidden] { display: none; }
  .bpd-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; background: rgba(8,20,38,.45); }
  .bpd-card {
    width: min(100%, 380px); padding: 18px 20px; text-align: center;
    border: 3px solid var(--ink); border-radius: 16px; background: #fff; box-shadow: 0 5px 0 var(--ink);
    animation: bpdIn .22s ease-out;
  }
  @keyframes bpdIn { from { transform: translateY(10px) scale(.96); opacity: 0; } }
  .bpd-card canvas { display: block; margin: 0 auto 6px; width: auto; height: 72px; image-rendering: pixelated; }
  .bpd-card canvas.is-boss { height: 120px; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 14px; background: radial-gradient(circle at 50% 45%, #fff7d6, #e8eef6 70%); box-shadow: 0 3px 0 var(--ink); }
  .bpd-tag { font-weight: 800; color: var(--ink) !important; }
  .bpd-lines { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; text-align: left; }
  .bpd-lines[hidden] { display: none; }
  .bpd-lines li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; color: #334155; font-size: .86rem; line-height: 1.3; }
  .bpd-ic { flex: none; width: 1.3em; text-align: center; }
  .bpd-more { display: block; margin: -4px auto 12px; padding: 2px 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .78rem; font-weight: 800; text-decoration: underline; cursor: pointer; }
  .bpd-kicker {
    display: inline-block; margin-bottom: 4px; padding: 3px 10px;
    border: 2px solid var(--ink); border-radius: 999px; background: linear-gradient(180deg,#fde68a,#f2a626);
    box-shadow: 0 2px 0 var(--ink); font-size: .72rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
  }
  .bpd-card h2 { margin: 6px 0 6px; font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.1; }
  .bpd-card p { margin: 0 0 12px; color: #334155; font-size: .9rem; }
  .bpd-diffs { display: flex; justify-content: center; gap: 8px; margin: 4px 0 14px; flex-wrap: wrap; }
  .bpd-diff {
    min-width: 92px; padding: 6px 12px 5px; display: flex; flex-direction: column; align-items: center;
    border: 2px solid var(--ink); border-radius: 12px; background: linear-gradient(180deg,#fff,#e6f3fb);
    box-shadow: 0 3px 0 var(--ink); font: inherit; line-height: 1.15; cursor: pointer;
  }
  .bpd-diff b { font-size: .92rem; }
  .bpd-diff small { color: var(--muted); font-size: .64rem; font-weight: 800; }
  .bpd-diff.is-active { color: #fff; background: linear-gradient(180deg,#38bdf8 0%,#0ea5e9 24%,#0284c7 62%,#0369a1 100%); transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
  .bpd-diff.is-active small { color: rgba(255,255,255,.9); }
  .bpd-btn {
    min-height: 44px; padding: 10px 22px;
    border: 3px solid var(--ink); border-radius: 999px; color: var(--ink);
    background: linear-gradient(135deg, rgba(255,255,255,.3) 0 18%, transparent 18% 100%), linear-gradient(180deg,#fde68a 0%,#fbbf24 30%,#f2a626 62%,#d98a12 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 0 var(--ink);
    font: inherit; font-size: 1rem; font-weight: 900; cursor: pointer;
  }
  .bpd-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
  .bpd-end-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 0 0 14px; }
  .bpd-end-stats div { padding: 8px 4px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8f9fa; }
  .bpd-end-stats strong { display: block; color: var(--blue-dark); font-size: 1.15rem; }
  .bpd-end-stats span { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

  .bpd-btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
  .bpd-btn-ghost {
    padding: 8px 14px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink);
    box-shadow: 0 3px 0 var(--ink); font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer;
  }
  .bpd-btn-ghost:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
  .bpd-saved { margin: 0 0 12px !important; padding: 8px 10px; border: 1px solid #bae6fd; border-radius: 12px; background: #f0f9ff; font-size: .82rem !important; font-weight: 700; }
  .bpd-saved button { margin-left: 6px; padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font: inherit; font-size: .74rem; font-weight: 800; cursor: pointer; box-shadow: 0 2px 0 var(--ink); }
  .bpd-name-form { margin: 0 0 4px; padding: 12px; border: 1px solid #fde68a; border-radius: 12px; background: #fffbeb; text-align: left; }
  .bpd-name-form label { display: block; margin-bottom: 7px; font-size: .88rem; font-weight: 900; }
  .bpd-name-form input { width: 100%; padding: 9px 12px; border: 2px solid var(--ink); border-radius: 10px; font: inherit; font-size: 1.02rem; font-weight: 800; text-align: center; }
  .bpd-name-btns { display: flex; gap: 8px; margin-top: 8px; }
  .bpd-name-form .bpd-btn { flex: 1; min-height: 40px; padding: 6px 12px; font-size: .9rem; }
  .bpd-name-form .bpd-btn-ghost { flex: none; }
  .bpd-form-msg { min-height: 1.2em; margin: 6px 0 0 !important; color: #b91c1c !important; font-size: .78rem !important; font-weight: 800; }
  .bpd-board-msg { margin: 6px 0 0 !important; color: #334155; font-size: .86rem !important; font-weight: 700; }
  .bpd-board { max-height: 230px; margin-top: 8px; overflow-y: auto; border: 2px solid var(--ink); border-radius: 12px; background: #fff; text-align: left; }
  .bpd-board table { width: 100%; border-collapse: collapse; font-size: .82rem; }
  .bpd-board th { position: sticky; top: 0; padding: 6px 8px; color: #fff; background: var(--blue); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; text-align: left; }
  .bpd-board td { padding: 5px 8px; border-top: 1px solid #e3e8f2; }
  .bpd-board .num { text-align: right; font-variant-numeric: tabular-nums; }
  .bpd-board tr.is-me td { background: #fff1b8; font-weight: 900; }
  .bpd-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
  .bpd-tab { padding: 7px 4px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--blue-dark); box-shadow: 0 3px 0 var(--ink); font: inherit; font-size: .82rem; font-weight: 900; cursor: pointer; }
  .bpd-tab.is-active { color: #fff; background: linear-gradient(180deg,#38bdf8 0%,#0284c7 100%); }
  .bpd-card { max-height: calc(100% - 8px); overflow-y: auto; }

  .bpd-signs { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
  .bpd-signs:empty { display: none; }
  .bpd-sign { position: relative; overflow: hidden; padding: 3px 8px; border: 2px solid var(--sign, #5cbf4a); border-radius: 8px; background: #1c1a1e; color: #fff; font-size: .7rem; font-weight: 800; line-height: 1.3; white-space: nowrap; }
  .bpd-sign span { position: relative; }
  .bpd-sign-bar { position: absolute; inset: 0 auto 0 0; background: var(--sign, #5cbf4a); opacity: .32; }

  .bpd-small-btn {
    min-height: 36px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 8px;
    background: linear-gradient(180deg,#fff,#e6f3fb); box-shadow: 0 3px 0 var(--ink);
    font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer;
  }
  .bpd-small-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
  .bpd-small-btn.is-danger { color: #fff; background: linear-gradient(180deg,#f87171,#dc2626); }
  .bpd-small-btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: 0 3px 0 var(--ink); }
  .bpd-small-btn[hidden] { display: none; }
  .bpd-test { margin: 0 0 18px; padding: 10px 12px; border: 2px dashed #f59e0b; border-radius: 12px; background: #fffbeb; }
  .bpd-test strong { display: block; margin-bottom: 6px; color: #92400e; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
  .bpd-test-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .bpd-test input { width: 80px; min-height: 36px; padding: 5px 8px; border: 2px solid var(--ink); border-radius: 8px; font: inherit; font-weight: 800; text-align: center; }
  .bpd-test-quick { display: flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; }
  .bpd-test-quick button { padding: 4px 9px; border: 1.5px solid var(--ink); border-radius: 6px; background: #fff; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
  @media (hover: none) { .bpd-fs-note { display: none; } }

  /* ---------- full screen: the whole game box, scaled to fit any screen ---------- */
  .bpd-shell:fullscreen { display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2a2340, #120f1c 75%); }
  .bpd-shell:-webkit-full-screen { display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2a2340, #120f1c 75%); }
  .bpd-shell:fullscreen .bpd-app { flex: none; width: 1180px; }
  .bpd-shell:-webkit-full-screen .bpd-app { flex: none; width: 1180px; }

  /* ---------- splash screen (same setup as Gearbo Digs!) ---------- */
  .bpd-app { min-height: 600px; }
  .bpd-splash { position: absolute; inset: 0; z-index: 30; overflow: hidden; border-radius: 17px; background: #1c1730; }
  .bpd-splash[hidden] { display: none; }
  .bpd-splash-world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; filter: saturate(.9) brightness(.8); }
  .bpd-splash::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border: 16px solid #2a2340; border-top-color: #f2a626; border-bottom-color: #4a9a3c; border-radius: 17px; box-shadow: inset 0 0 0 3px var(--ink), inset 0 10px 24px rgba(15,23,42,.3); }
  .bpd-splash::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 48% 58% at 50% 56%, rgba(20,14,36,.62), rgba(20,14,36,.12) 78%); }
  .bpd-splash-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 28px; text-align: center; }
  .bpd-splash-brand { margin: 0 0 10px; padding: 3px 12px; border: 2px solid var(--ink); border-radius: 999px; color: var(--blue-dark); background: rgba(255,255,255,.94); box-shadow: 0 2px 0 var(--ink); font-size: .82rem; font-weight: 800; }
  .bpd-splash-title { margin: 0; color: #fff; font-size: clamp(2.3rem, 6.2vw, 4.4rem); font-weight: 900; line-height: .98; letter-spacing: -.02em; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink), 0 9px 0 #f2a626; }
  .bpd-splash-tag { max-width: 60ch; margin: 18px 0 0; color: #fff; font-size: 1.02rem; line-height: 1.45; font-weight: 700; text-shadow: 0 2px 0 var(--ink), 0 0 8px rgba(0,0,0,.55); }
  .bpd-splash-diffs { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .bpd-splash-diff { min-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 12px 5px; border: 2px solid var(--ink); border-radius: 12px; color: var(--ink); background: linear-gradient(180deg,#fff,#e6f3fb); box-shadow: 0 3px 0 var(--ink); font: inherit; cursor: pointer; }
  .bpd-splash-diff b { font-size: .92rem; font-weight: 900; }
  .bpd-splash-diff small { color: var(--muted); font-size: .64rem; font-weight: 800; }
  .bpd-splash-diff:hover { transform: translateY(-1px); }
  .bpd-splash-diff.is-active { color: #fff; background: linear-gradient(135deg, rgba(255,255,255,.18) 0 18%, transparent 18% 100%), linear-gradient(180deg,#38bdf8 0%,#0ea5e9 24%,#0284c7 62%,#0369a1 100%); transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
  .bpd-splash-diff.is-active small { color: rgba(255,255,255,.92); }
  .bpd-splash-stage { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin-top: 14px; }
  .bpd-splash-bee { position: relative; width: 112px; height: 112px; margin-bottom: 64px; filter: drop-shadow(0 6px 4px rgba(0,0,0,.35)); animation: bpdBeeBob 1.6s ease-in-out infinite; }
  .bpd-splash-bee img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
  .bpd-splash-bee .flap-a { animation: bpdFlapA .24s steps(1) infinite; }
  .bpd-splash-bee .flap-b { animation: bpdFlapB .24s steps(1) infinite; }
  @keyframes bpdBeeBob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
  @keyframes bpdFlapA { 0% { opacity: 1; } 50% { opacity: 0; } }
  @keyframes bpdFlapB { 0% { opacity: 0; } 50% { opacity: 1; } }
  .bpd-splash-press { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 10px 4px; border: 0; border-radius: 18px; background: none; color: var(--ink); font: inherit; cursor: pointer; }
  .bpd-splash-press:focus-visible, .bpd-splash-diff:focus-visible, .bpd-splash-scores:focus-visible { outline: 3px solid #38bdf8; outline-offset: 3px; }
  .bpd-splash-patch { position: relative; display: block; width: 170px; height: 112px; transition: transform .12s ease; }
  .bpd-splash-press:hover .bpd-splash-patch { transform: translateY(-3px); }
  .bpd-splash-grass { position: absolute; left: 8px; right: 8px; bottom: 0; height: 46px; z-index: 1; border: 3px solid var(--ink); border-radius: 80px 80px 14px 14px;
    background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(20,83,45,.35) 9px 11px) 0 4px / 100% 10px no-repeat, linear-gradient(180deg, #6fcf4f 0%, #4a9a3c 55%, #3a7d2f 100%); box-shadow: 0 4px 0 var(--ink); }
  .bpd-splash-flower { position: absolute; left: 50%; bottom: 30px; width: 80px; z-index: 0; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)); transform-origin: 50% 100%; transform: translateX(-50%); animation: bpdFlowerSway 2.4s ease-in-out infinite; }
  @keyframes bpdFlowerSway { 0%,100% { transform: translateX(-50%) rotate(-6deg); } 50% { transform: translateX(-50%) rotate(6deg); } }
  .bpd-spark { position: absolute; z-index: 2; width: 8px; height: 8px; left: 50%; top: 30px; background: #fde047; box-shadow: 0 0 0 2px var(--ink); opacity: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
  .bpd-splash-label { display: inline-block; padding: 10px 26px; border: 3px solid var(--ink); border-radius: 999px; color: var(--ink);
    background: linear-gradient(135deg, rgba(255,255,255,.3) 0 18%, transparent 18% 100%), linear-gradient(180deg,#fde68a 0%,#fbbf24 30%,#f2a626 62%,#d98a12 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 0 var(--ink); font-size: 1.15rem; font-weight: 900; }
  .bpd-splash-press:active .bpd-splash-label { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 0 var(--ink); }
  .bpd-splash-best { min-height: 1.4em; margin: 14px 0 0; color: #fff; font-size: .92rem; font-weight: 800; text-shadow: 0 2px 0 var(--ink), 0 0 6px rgba(0,0,0,.5); }
  .bpd-splash-saved { margin: 6px 0 0; color: #fff; font-size: .86rem; font-weight: 800; text-shadow: 0 2px 0 var(--ink), 0 0 6px rgba(0,0,0,.5); }
  .bpd-splash-saved[hidden] { display: none; }
  .bpd-splash-newrun { margin-left: 6px; padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: .76rem; font-weight: 800; text-shadow: none; cursor: pointer; box-shadow: 0 2px 0 var(--ink); }
  .bpd-splash-scores { margin-top: 10px; padding: 8px 18px; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); background: linear-gradient(180deg,#fff,#e6f3fb); box-shadow: 0 3px 0 var(--ink); font: inherit; font-size: .88rem; font-weight: 800; cursor: pointer; }
  .bpd-splash-scores:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
  /* pressing "Let's dash!": Betty zooms over and plucks the flower */
  .bpd-splash.is-plucking .bpd-splash-bee { animation: bpdBeeSwoop .75s cubic-bezier(.3,.7,.3,1) both; }
  .bpd-splash.is-plucking .bpd-splash-flower { animation: bpdFlowerPluck .75s cubic-bezier(.3,.7,.3,1) .22s both; }
  .bpd-splash.is-plucking .bpd-spark { animation: bpdSpark .6s ease-out .3s both; }
  .bpd-splash.is-plucking .bpd-spark.s1 { --sx: -60px; --sy: -40px; } .bpd-splash.is-plucking .bpd-spark.s2 { --sx: 56px; --sy: -46px; }
  .bpd-splash.is-plucking .bpd-spark.s3 { --sx: -30px; --sy: -72px; } .bpd-splash.is-plucking .bpd-spark.s4 { --sx: 34px; --sy: -78px; } .bpd-splash.is-plucking .bpd-spark.s5 { --sx: 0px; --sy: -92px; }
  @keyframes bpdBeeSwoop { 0% { transform: translate(0,0); } 40% { transform: translate(110px, 30px) rotate(10deg); } 100% { transform: translate(150px, -150px) rotate(-12deg); opacity: 0; } }
  @keyframes bpdFlowerPluck { 0% { transform: translateX(-50%); } 25% { transform: translateX(-50%) translateY(10px) scaleY(.9); } 100% { transform: translateX(-10%) translateY(-170px) rotate(18deg); opacity: 0; } }
  @keyframes bpdSpark { 0% { opacity: 1; transform: translate(-50%, 0) scale(.6); } 100% { opacity: 0; transform: translate(calc(-50% + var(--sx)), var(--sy)) scale(1.3) rotate(90deg); } }
  .bpd-splash.is-leaving { opacity: 0; transition: opacity .25s ease; }
  @media (max-width: 900px) { .bpd-splash-inner { justify-content: flex-start; padding-top: clamp(44px, 9vh, 100px); } }
  @media (max-width: 560px) {
    .bpd-splash::before { border-width: 10px; }
    .bpd-splash-inner { padding-left: 18px; padding-right: 18px; }
    .bpd-splash-title { -webkit-text-stroke-width: 2px; text-shadow: 0 4px 0 var(--ink), 0 7px 0 #f2a626; }
    .bpd-splash-tag { font-size: .92rem; }
    .bpd-splash-diff { min-width: 0; padding: 6px 10px 5px; }
    .bpd-splash-bee { width: 80px; height: 80px; margin-bottom: 56px; }
    .bpd-splash-patch { width: 140px; height: 96px; }
    .bpd-splash-flower { width: 64px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .bpd-splash-bee, .bpd-splash-bee img, .bpd-splash-flower { animation: none !important; }
    .bpd-splash-bee .flap-b { opacity: 0; }
    .bpd-splash.is-leaving { transition: none; }
  }

  .bpd-pad { width: min(100%, 200px); display: grid; grid-template: repeat(3,1fr) / repeat(3,1fr); gap: 6px; margin: 0 auto; aspect-ratio: 1; user-select: none; -webkit-user-select: none; touch-action: none; }
  .bpd-pad button {
    display: grid; place-items: center; padding: 0; border: 2px solid var(--ink); border-radius: 12px; color: #fff;
    background: linear-gradient(135deg, rgba(255,255,255,.16) 0 18%, transparent 18% 100%), linear-gradient(180deg,#38bdf8 0%,#0ea5e9 22%,#0284c7 60%,#0369a1 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 0 var(--ink);
    cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent;
  }
  .bpd-pad button svg { width: 46%; height: 46%; fill: currentColor; }
  .bpd-pad button.is-held { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); background: linear-gradient(180deg,#0284c7,#075985); }
  .bpd-pad .up { grid-area: 1/2; } .bpd-pad .left { grid-area: 2/1; } .bpd-pad .right { grid-area: 2/3; } .bpd-pad .down { grid-area: 3/2; }
  .bpd-pad .bpd-pick {
    grid-area: 2/2; margin: 4%; display: grid; place-items: center; padding: 0;
    border: 2px solid var(--ink); border-radius: 50%; color: var(--ink);
    background: radial-gradient(circle at 40% 32%, #fef3c7 0 12%, #fbbf24 38%, #d98a12 84%);
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 3px 0 var(--ink);
    font: inherit; font-size: .64rem; font-weight: 1000; letter-spacing: .02em; line-height: 1.05;
    cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent;
  }
  .bpd-pad .bpd-pick { position: relative; overflow: hidden; }
  .bpd-pad .bpd-pick span { position: relative; z-index: 1; }
  .bpd-pad .bpd-pick::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--cool, 0) * 100%); background: rgba(28,26,30,.45); }
  .bpd-pad .bpd-pick.is-puff { color: #fff; background: radial-gradient(circle at 40% 32%, #f5d0fe 0 12%, #c084fc 38%, #7e22ce 84%); text-shadow: 0 1px 0 rgba(0,0,0,.35); }
  .bpd-pad .bpd-pick.is-held { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), 0 1px 0 var(--ink); background: radial-gradient(circle at 40% 32%, #fde68a 0 12%, #f2a626 38%, #b45309 84%); }

  @media (max-width: 900px) {
    .bpd-app { grid-template-columns: 1fr 1fr; grid-template-areas: "hud hud" "main main" "pad stats"; padding: 14px; }
  }
  @media (max-width: 560px) {
    .bpd-app { grid-template-columns: 1fr; grid-template-areas: "hud" "main" "pad" "stats"; padding: 10px; gap: 12px; }
    .bpd-toast { font-size: .72rem; }
  }

  /* ---------- "On a phone? Play the Mobile Version" (touch screens only) ---------- */
  .bpd-mobile-link { display: none; align-items: center; justify-content: center; gap: 9px; width: 100%; margin: 0 0 14px; padding: 11px 16px;
    border: 3px solid var(--ink); border-radius: 14px; color: var(--ink);
    background: linear-gradient(135deg, rgba(255,255,255,.3) 0 18%, transparent 18% 100%), linear-gradient(180deg,#fde68a 0%,#fbbf24 30%,#f2a626 62%,#d98a12 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 4px 0 var(--ink); font-size: .98rem; font-weight: 800; text-align: center; }
  .bpd-mobile-link b { font-weight: 900; }
  .bpd-mobile-link:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
  @media (hover: none) and (pointer: coarse) { .bpd-mobile-link { display: flex; } }
