.plm-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.plm-stats { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.plm-stats b { color: var(--text); font-size: 18px; }
#time { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 700; }
.plm-btns .btn { min-height: 40px; }
.plm-msg { min-height: 1.4em; margin: 0 0 8px; font-weight: 700; color: var(--amber-2); }
.plm-msg.win { color: var(--good); font-size: 18px; }
.plm-board-wrap { width: 100%; display: flex; justify-content: center; padding: 10px 0 16px; overflow: hidden; }
.plm-board { position: relative; }
.tile { position: absolute; padding: 0; border: 0; border-radius: 7px; cursor: pointer; background: #fbf6ea; color: #14213a;
  box-shadow: 3px 3px 0 #cdbd98, 5px 5px 0 #a8946b, 6px 7px 10px rgba(0,0,0,.45); display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center;
  transition: transform .12s ease, opacity .2s ease, filter .2s ease; -webkit-tap-highlight-color: transparent; }
.tile svg { width: 86%; height: auto; display: block; margin-top: 6%; }
.tile .lbl { font: 800 var(--lbl, 10px)/1.1 system-ui, sans-serif; letter-spacing: -.02em; padding: 0 2px 6%; white-space: nowrap; }
.tile .pin-up { fill: #14213a; }
.tile .pin-down { fill: none; stroke: #d6c7a4; stroke-width: 1.6; }
.tile.full .pin-up { fill: #b3261e; }
.tile.sel { transform: translateY(-4px); background: #fff3c4; box-shadow: 0 0 0 3px var(--amber), 3px 3px 0 #cdbd98, 5px 5px 0 #a8946b, 6px 10px 14px rgba(0,0,0,.5); }
.tile.hint { animation: pulse .9s ease-in-out 2; }
.tile.gone { opacity: 0; transform: scale(.6); pointer-events: none; }
.plm-board.dim .tile.blocked { filter: brightness(.72) saturate(.8); }
.tile.blocked { cursor: default; }
.tile:focus-visible { outline: 3px solid var(--amber-2); outline-offset: 2px; }
.tile.shake { animation: shake .3s; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px var(--good), 3px 3px 0 #cdbd98, 5px 5px 0 #a8946b; } }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .tile, .tile.hint, .tile.shake { animation: none; transition: none; } }
.plm-opt { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 18px; cursor: pointer; }
.plm-opt input { width: 18px; height: 18px; accent-color: var(--amber); }
.how summary { cursor: pointer; font-weight: 800; }
.how ul { margin: 10px 0 0; padding-left: 1.2em; line-height: 1.6; }
.how h3 { margin: 16px 0 8px; font-size: 16px; }
.plm-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.plm-legend div { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; font-size: 13px; }
.plm-legend svg { width: 44px; background: #fbf6ea; border-radius: 6px; padding: 3px; }
.plm-legend .pin-up { fill: #14213a; } .plm-legend .pin-down { fill: none; stroke: #d6c7a4; stroke-width: 1.6; }
.plm-legend small { color: var(--muted); display: block; }
.tile .lbl.long { font-size: calc(var(--lbl, 10px) * .8); letter-spacing: -.04em; }
