/* MONSTER MASH MOTORS — the Pit Pass. Builds on paint.css (shared .mk-*
   tokens, buttons and the in-page confirm), which pitpass.js also loads. */

.pp-head {
  position: relative; max-width: 720px; margin: 0 auto 22px; padding: 16px 18px 18px; text-align: center;
  background: var(--mk-paper-hi); border: 4px solid var(--mk-key); border-radius: 24px; box-shadow: 6px 6px 0 var(--mk-orange);
}
.pp-hole { width: 72px; height: 18px; margin: 0 auto 12px; background: var(--mk-paper); border: 4px solid var(--mk-key); border-radius: 12px; }
.pp-title {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--mk-title); font-size: clamp(40px, 11vw, 64px); line-height: 1; letter-spacing: 2px; text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--mk-blue);
}
.pp-title .mk-ico { width: 46px; height: 46px; }
.pp-count { margin: 10px 0 8px; font-size: 20px; font-weight: 700; }
.pp-num { font-family: var(--mk-title); font-weight: 400; font-size: 46px; line-height: 1; color: var(--mk-orange); -webkit-text-stroke: 1.5px var(--mk-key); }
.pp-meter { max-width: 480px; height: 26px; margin: 0 auto 12px; background: var(--mk-paper); border: 3px solid var(--mk-key); border-radius: 13px; overflow: hidden; }
.pp-meter-fill { display: block; width: 0; height: 100%; background: repeating-linear-gradient(-45deg, var(--mk-orange) 0 10px, #FF9466 10px 20px); }
.pp-note { margin: 4px 0 12px; font-size: 15px; color: #3D3935; }
.pp-head .mk-confirm { text-align: left; }

.pp-group { margin: 26px 0; }
.pp-group-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 12px; padding: 8px 14px;
  font-family: var(--mk-title); font-weight: 400; font-size: clamp(22px, 5.5vw, 30px); line-height: 1.15; letter-spacing: 1px;
  background: var(--mk-key); color: var(--mk-paper-hi); border-radius: 12px;
}
.pp-group-count { flex: none; color: var(--mk-yellow); font-size: 0.85em; }
.pp-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); margin: 0; padding: 0; list-style: none; }
.pp-badge {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 14px; text-align: center;
  background: var(--mk-paper-hi); border: 3px solid var(--mk-key); border-radius: 16px; box-shadow: 4px 4px 0 var(--mk-key);
}
.pp-art svg { display: block; width: 112px; height: 112px; }
.pp-name { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.2; }
.pp-stamp {
  margin: 2px 0 0; padding: 2px 10px; font-family: var(--mk-title); font-size: 15px; letter-spacing: 1px; text-transform: uppercase;
  color: #A8261A; border: 2.5px solid #A8261A; border-radius: 8px; transform: rotate(-4deg);
}
/* The punch: a star knocked out of the card's corner. */
.pp-earned::before, .pp-earned::after {
  content: ''; position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.pp-earned::before { background: var(--mk-key); }
.pp-earned::after { top: 12px; right: 12px; width: 20px; height: 20px; background: var(--mk-paper); }

.pp-todo { background: var(--mk-paper); border-style: dashed; box-shadow: none; }
.pp-todo .pp-art svg { opacity: 0.85; }
.pp-hint { margin: 0; font-size: 15px; line-height: 1.3; color: #3D3935; }
.pp-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 96px; min-height: 48px; margin-top: auto; padding: 6px 14px;
  font-weight: 800; color: var(--mk-key); text-decoration: none; background: var(--mk-yellow);
  border: 3px solid var(--mk-key); border-radius: 12px; box-shadow: 3px 3px 0 var(--mk-key);
}
.pp-go:hover { background: #FFC56B; }
.pp-go:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--mk-key); }
.pp-go .mk-ico { width: 26px; height: 26px; }
