/* Pattern Blink on the CogniBump Arcade look (/shared/cb-arcade.css). Linked after it.
   Teal accent; four chunky coloured pads (colour AND shape, like the kit's answer badges). */
body.cbx.pb-page { --cbx-accent: #0a7480; }
body.cbx.pb-page main { display: block; }

/* ---- shared mini-daily bits (same in emoji-equation / five-snap / order-up) ---- */
.mg-card { scroll-margin-top: 70px; }
.mg-card .cbx-topline { min-height: 34px; }
.mg-card #meta { font-size: 13px; }
.mg-result[hidden] { display: none; }
.mg-marks { display: flex; justify-content: center; gap: 8px; margin: 8px 0 4px; }
.mg-marks i { width: 30px; height: 30px; border-radius: 9px; background: var(--cbx-accent); box-shadow: inset 0 -5px 0 rgba(0,0,0,.18); }
.mg-marks i.no { background: #e9eef3; box-shadow: inset 0 -5px 0 rgba(42,29,23,.08), inset 0 0 0 2px #d9e1e8; }
.mg-share { margin-top: 14px; }
.mg-card .mg-share[hidden] { display: none; }
.mg-card .cbx-answers { padding: 0; margin: 0; }
.mg-links { margin: 14px 4px 0; text-align: center; font-weight: 800; font-size: 14px; color: var(--cbx-muted); }
.mg-read h2 { margin-bottom: 8px; }
.mg-read p { margin: 0 0 12px; }
.mg-read ul { margin: 0 0 12px; }
.mg-read .cbx-note { margin: 4px 0 0; }

/* ---- phase pill: ink while you watch, accent when it's your turn ---- */
.pb-page .mg-card[data-phase="watch"] #meta { background: var(--cbx-ink); color: #fff; }
.pb-page .mg-card[data-phase="play"] #meta { background: var(--cbx-accent); color: #fff; animation: pb-nudge .5s ease; }
@keyframes pb-nudge { 40% { transform: scale(1.08); } }

/* ---- the pads ---- */
.pb-stage { position: relative; max-width: 340px; margin: 8px auto 4px; }
.pb-stage[hidden] { display: none; }
.pb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cb-cell {
  --c: var(--cbx-a0); position: relative; aspect-ratio: 1; border-radius: 26px; cursor: pointer; padding: 0;
  border: 0; background: color-mix(in srgb, var(--c) 16%, #fff);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c) 30%, #fff), 0 7px 0 color-mix(in srgb, var(--c) 38%, #fff);
  transition: transform .1s ease, box-shadow .1s ease, background .1s ease; touch-action: manipulation;
}
.cb-cell::before {   /* the shape */
  content: ''; position: absolute; inset: 30%; background: color-mix(in srgb, var(--c) 55%, #fff);
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; transition: background .1s ease;
}
.cb-cell:nth-child(1) { --c: var(--cbx-a0); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2l8.5 15h-17z'/%3E%3C/svg%3E"); }
.cb-cell:nth-child(2) { --c: var(--cbx-a1); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8'/%3E%3C/svg%3E"); }
.cb-cell:nth-child(3) { --c: #e09c00; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='3' y='3' width='14' height='14' rx='1'/%3E%3C/svg%3E"); }
.cb-cell:nth-child(4) { --c: var(--cbx-a3); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1l9 9-9 9-9-9z'/%3E%3C/svg%3E"); }
@media (hover: hover) {
  .cb-cell:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c) 60%, #fff), 0 9px 0 color-mix(in srgb, var(--c) 38%, #fff); }
}
.cb-cell:active:not(:disabled) { transform: translateY(6px); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c) 60%, #fff), 0 1px 0 color-mix(in srgb, var(--c) 38%, #fff); }
.cb-cell:disabled { cursor: default; }
.pb-stage.is-idle .cb-cell { filter: saturate(.55); }
/* lit (watch) and ok (your correct tap): full colour, white shape, glow */
.cb-cell.cb-cell--lit, .cb-cell.cb-cell--ok {
  background: var(--c); transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 22%, transparent), 0 10px 0 color-mix(in srgb, var(--c) 70%, #000), 0 16px 36px color-mix(in srgb, var(--c) 45%, transparent);
}
.cb-cell.cb-cell--ok { transform: translateY(3px); }
.cb-cell.cb-cell--lit::before, .cb-cell.cb-cell--ok::before { background: #fff; }
.cb-cell.pb-miss { background: var(--cbx-bad); box-shadow: 0 0 0 6px color-mix(in srgb, var(--cbx-bad) 22%, transparent), 0 7px 0 #8f241d; animation: cbx-shake .4s ease; }
.cb-cell.pb-miss::before { background: #fff; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 5l10 10M15 5L5 15' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 5l10 10M15 5L5 15' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cb-cell.pb-want { box-shadow: inset 0 0 0 4px var(--cbx-good), 0 7px 0 color-mix(in srgb, var(--c) 38%, #fff); animation: cbx-pop .5s ease 2; }

/* how far through this round's sequence you are */
.pb-seq { display: flex; justify-content: center; gap: 7px; min-height: 12px; margin: 16px 0 2px; }
.pb-seq i { width: 11px; height: 11px; border-radius: 50%; background: var(--cbx-soft); box-shadow: inset 0 0 0 2px var(--cbx-line); transition: background .15s; }
.pb-seq i.on { background: var(--cbx-accent); box-shadow: none; }

/* start button laid over the resting pads */
.pb-go { position: absolute; inset: 0; margin: auto; width: min(240px, 80%); height: 64px; z-index: 2; }
.pb-go[hidden] { display: none; }
