/* Plopp Blocks in the browser (daily and challenge pages); on top of /plopp/plopp.css */
.dhead { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 0 0 6px; }
.dhead img { width: 64px; height: 64px; border-radius: 15px; border: 2px solid var(--ink); box-shadow: 3px 4px 0 var(--shadow); flex: none; }
.dtitle { font-weight: 700; font-size: clamp(30px, 8vw, 44px); letter-spacing: -.035em; line-height: 1; }
.dsub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; color: var(--muted); font-weight: 600; font-size: 15px; }
.dpill { display: inline-block; border: 2px solid var(--ink); border-radius: 999px; padding: 0 10px; color: var(--ink); font-weight: 700; font-size: 13px; line-height: 22px; }
.dlead { text-align: center; color: var(--muted); font-size: 16px; margin: 6px auto 16px; max-width: 520px; }
.gamecard { padding: 16px 12px 18px; max-width: 640px; margin-left: auto; margin-right: auto; }
.more, .chal { max-width: 640px; margin-left: auto; margin-right: auto; }
.more { text-align: center; background: var(--sun); }
.more h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; }
.more p { color: #3a3a44; margin: 0 auto 14px; max-width: 520px; }
.more .pills { margin: 0 0 16px; }
.more .store { justify-content: center; }
.playlink { display: inline-flex; align-items: center; gap: 8px; background: #FFD43B; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 2px 3px 0 var(--ink); padding: 8px 18px; font-weight: 700; text-decoration: none; }
.playlink:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--ink); }

/* the game */
.bp { overflow-anchor: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; display: flex; flex-direction: column; align-items: center; }
.bp-head { text-align: center; }
.bp-clock { font-weight: 700; font-size: 52px; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; position: relative; }
.bp-clock.bp-pen::after { content: "+0:20"; position: absolute; left: 100%; top: -4px; margin-left: 6px; font-size: 20px; color: #FF5B36; animation: bp-rise 1.2s ease-out forwards; }
@keyframes bp-rise { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
.bp-reach { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 22px; margin-top: 4px; color: var(--muted); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.bp-stars { display: inline-flex; gap: 2px; }
.bp-stars svg { display: block; }
.bp-done .bp-clock { opacity: .4; }
.bp-tools { display: flex; gap: 12px; justify-content: center; margin: 12px 0 4px; }
.bp-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--sheet); color: var(--ink); font: 700 15px "Space Grotesk", -apple-system, system-ui, sans-serif; box-shadow: 3px 4px 0 var(--ink); cursor: pointer; }
.bp-pill:active:not(:disabled) { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.bp-pill:disabled { opacity: .4; cursor: default; }
.bp-tip { background: #FFD43B; }
.bp-tip em { font-style: normal; color: rgba(23, 23, 28, .6); font-variant-numeric: tabular-nums; }
.bp-boardwrap { margin: 10px auto 6px; }
.bp-board { position: relative; touch-action: none; cursor: pointer; }
.bp-board .bp-bg { position: absolute; left: 0; top: 0; }
.bp-piece { position: absolute; pointer-events: none; transition: left .18s ease, top .18s ease; }
.bp-piece svg { display: block; }
.bp-faint { opacity: .35; }
.bp-hint { animation: bp-glow 1.2s ease-in-out infinite; }
@keyframes bp-glow { 50% { opacity: .6; } }
.bp-land { animation: bp-land .28s ease; }
@keyframes bp-land { 30% { transform: scale(1.012); } }
.bp-nope { animation: bp-nope .3s ease; }
@keyframes bp-nope { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.bp-hop { animation: bp-hop .9s ease-out both; transform-origin: 50% 100%; }
@keyframes bp-hop {
  0% { transform: none; } 10% { transform: scale(1.12, .8); } 28% { transform: translateY(-38%) scale(.9, 1.15); }
  45% { transform: scale(1.12, .86); } 60% { transform: rotate(6deg); } 72% { transform: rotate(-5deg); } 86% { transform: rotate(2deg); } 100% { transform: none; }
}
.bp-tray { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 16px; padding: 10px 4px 4px; min-height: 60px; width: 100%; }
.bp-tpiece { background: none; border: 0; padding: 4px; margin: 0; cursor: grab; touch-action: none; border-radius: 10px; }
.bp-tpiece:focus-visible { outline: 3px solid var(--blue); }
.bp-tpiece svg { display: block; }
.bp-float { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(23, 23, 28, .2)); }
.bp-end { width: 100%; }
.bp-endcard { text-align: center; padding: 8px 8px 4px; }
.bp-endcard .bp-stars { gap: 6px; }
.bp-done-t { font-weight: 700; font-size: 20px; margin: 10px 0 0; }
.bp-big { font-weight: 700; font-size: 56px; line-height: 1.05; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.bp-line { color: var(--muted); font-weight: 600; margin: 2px 0 12px; }
.bp-verdict { font-weight: 700; font-size: 18px; margin: 0 0 12px; }
.bp-share { display: inline-block; background: var(--blue); color: #fff; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 4px 0 var(--ink); padding: 10px 24px; font: 700 17px "Space Grotesk", -apple-system, system-ui, sans-serif; cursor: pointer; }
.bp-share:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.bp-tomorrow { color: var(--muted); font-weight: 600; margin: 14px 0 0; }
@media (prefers-reduced-motion: reduce) { .bp-hop, .bp-hint, .bp-land, .bp-nope, .bp-clock.bp-pen::after { animation: none; } .bp-piece { transition: none; } }

/* challenge pages */
.chal { text-align: center; }
.chal h1 { margin: 4px 0 2px; font-size: clamp(30px, 8vw, 44px); }
.chal .target { display: inline-block; font-weight: 700; font-size: clamp(34px, 10vw, 56px); letter-spacing: -.03em; line-height: 1.1; background: var(--sun); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 4px 5px 0 var(--shadow); padding: 10px 22px; margin: 14px 0 10px; }
.chal .what { color: var(--muted); font-weight: 700; margin: 0 0 10px; }
.chal p.explain { max-width: 520px; margin: 0 auto 18px; color: #3a3a44; }
.chal .store { justify-content: center; margin-bottom: 12px; }
.chal .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }

/* the daily ranking (blocks-board.js) */
.peek { display: flex; justify-content: center; margin: -4px 0 18px; }
.board { max-width: 640px; margin-left: auto; margin-right: auto; }
.board h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.02em; }
.bb-status { background: var(--peach); border: 2px solid var(--ink); border-radius: 14px; padding: 8px 12px; font-weight: 600; margin: 0 0 12px; }
.bb-form label { display: block; font-weight: 700; margin-bottom: 6px; }
.bb-row { display: flex; gap: 8px; }
.bb-row input { flex: 1; min-width: 0; font: 600 17px "Space Grotesk", -apple-system, system-ui, sans-serif; padding: 9px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--sheet); color: var(--ink); }
.bb-row input:focus { outline: 3px solid var(--lilac); }
.bb-btn { flex: none; background: var(--blue); color: #fff; border: 2px solid var(--ink); border-radius: 999px; box-shadow: 2px 3px 0 var(--ink); padding: 0 18px; font: 700 16px "Space Grotesk", -apple-system, system-ui, sans-serif; cursor: pointer; }
.bb-btn:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--ink); }
.bb-note { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }
.bb-place { font-weight: 700; margin: 0 0 10px; }
.bb-empty { color: var(--muted); margin: 0; }
.bb-list { list-style: none; margin: 0; padding: 0; }
.bb-list li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 12px; }
.bb-list li:nth-child(odd) { background: var(--paper); }
.bb-list li.bb-me { background: var(--sun); border: 2px solid var(--ink); padding: 5px 8px; font-weight: 700; }
.bb-list li.bb-gap { display: block; text-align: center; color: var(--muted); background: none; padding: 0; }
.bb-rank { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-streak { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; background: var(--leaf); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 7px; vertical-align: 1px; }
.bb-time { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.bb-time small { font-weight: 600; color: var(--muted); }
.bb-links { margin: 12px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.bb-link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
@media (max-width: 420px) { .bb-streak { display: block; margin: 2px 0 0; width: max-content; } }
