/* Skate Bud web demo: the styles of step 4, Tap yourself (js/screens-tap.js): the screens "tap" and "enough".
   Class prefix tp-. One full-screen column on every device. The key block keeps one height whatever the form
   (Tap yourself, Is this you?, Tap where you are), so the picture never changes size inside a frame. */

.tp-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px 16px; }

/* the title row */
.tp-head { flex: none; display: flex; align-items: center; gap: 10px; min-height: 25px; }
.tp-title { flex: 0 1 auto; min-width: 0; font-size: 20px; line-height: 25px; font-weight: 600; color: var(--sb-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-dots { flex: none; display: flex; align-items: center; gap: 5px; margin-left: -4px; }
.tp-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--sb-muted); }
.tp-dots i.is-on { background: var(--sb-muted); }
.tp-fill { flex: 1 1 auto; min-width: 4px; }
.tp-count { flex: none; font-size: 16px; line-height: 21px; font-weight: 600; color: var(--sb-accent); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the six parts of the game */
.tp-parts { flex: none; display: flex; gap: 3px; height: 5px; }
.tp-parts i { display: block; flex: 1 1 0; height: 5px; border-radius: 3px; background: var(--sb-border); overflow: hidden; }
.tp-parts b { display: block; height: 100%; border-radius: 3px; background: var(--sb-me); transition: width 0.25s ease-in-out; }

/* the line under the bar: one slot that is always there, so nothing moves */
.tp-line { flex: none; height: 18px; font-size: 13px; line-height: 18px; color: var(--sb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the picture */
.tp-pic { position: relative; flex: 1 1 auto; min-height: 0; border-radius: 10px; overflow: hidden; background: var(--sb-stage); }
.tp-pic canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; }
.tp-pic.is-new canvas { animation: tpSlide 0.3s ease-out; }
@keyframes tpSlide { from { transform: translateX(30%); opacity: 0; } to { transform: none; opacity: 1; } }
.tp-pic.is-wait { display: flex; align-items: center; justify-content: center; background: var(--sb-bg); }
.tp-look {
  position: absolute; left: 8px; top: 8px; z-index: 1; padding: 4px 8px; border-radius: 999px;
  background: var(--sb-sys-orange); color: #fff; font-size: 12px; line-height: 16px; font-weight: 600; pointer-events: none;
}

/* the keys */
.tp-keys { flex: none; height: 114px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.tp-keys.is-wide { height: 66px; }
.tp-rowa { flex: none; height: 18px; font-size: 13px; line-height: 18px; color: var(--sb-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-row { flex: none; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.tp-gap { flex: 1 1 auto; min-width: 8px; }

.tp-trio { position: relative; flex: none; display: flex; gap: 8px; }
.tp-small {
  flex: 1 1 0; min-width: 0; min-height: 44px; padding: 3px 8px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--sb-sel); color: var(--sb-accent); font-size: 15px; line-height: 18px; font-weight: 600; white-space: normal;
}
.tp-small:active { opacity: 0.75; }
.tp-small.is-auto { flex: none; padding: 3px 12px; white-space: nowrap; }
.tp-keys.is-wide .tp-small { flex: none; padding: 0 12px; white-space: nowrap; }
.tp-trio.is-picked .tp-small { visibility: hidden; }
.tp-me {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 240px; max-width: 100%; height: 44px; padding: 0 12px;
  border-radius: 12px; background: var(--sb-accent); color: #fff; font-size: 17px; font-weight: 600; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tp-me:active { opacity: 0.75; }

.tp-word { flex: none; height: 44px; padding: 0 8px; font-size: 17px; font-weight: 500; color: var(--sb-accent); white-space: nowrap; }
.tp-word:active { opacity: 0.5; }
.tp-word.is-gone, .tp-word:disabled { visibility: hidden; }
.tp-sure { flex: none; display: flex; margin-left: 6px; }

.tp-start { flex: none; min-height: 44px; padding: 0 22px; border-radius: 12px; background: var(--sb-accent); color: #fff; font-size: 17px; font-weight: 600; white-space: nowrap; }
.tp-start:active { opacity: 0.75; }

.tp-yn { flex: none; display: flex; justify-content: center; gap: 10px; }
.tp-yes, .tp-no { flex: 1 1 0; min-width: 0; max-width: 240px; height: 50px; border-radius: 12px; font-size: 17px; font-weight: 600; text-align: center; }
.tp-yes { background: var(--sb-accent); color: #fff; }
.tp-no { background: var(--sb-sel); color: var(--sb-accent); }
.tp-yes:active, .tp-no:active { opacity: 0.75; }
.tp-keys.is-wide .tp-yes, .tp-keys.is-wide .tp-no { flex: 0 0 150px; width: 150px; }

/* no frames, or more being found */
.tp-none { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.tp-none p { max-width: 420px; font-size: 16px; line-height: 21px; color: var(--sb-muted); }

/* That's 20. Thanks! */
.tp-enough { align-items: flex-start; }
.tp-enough > * { align-self: stretch; }
.tp-enough > .tp-tick { align-self: flex-start; }
.tp-tick { flex: none; width: 56px; height: 56px; border-radius: 50%; background: #d9eede; color: var(--sb-me); display: flex; align-items: center; justify-content: center; }
.tp-tick svg { stroke-width: 3px; }
.tp-enough .sb-hint b { font-weight: 700; }
.tp-enough .sb-hint > svg { margin-top: 1px; }
.tp-walk .sb-walk-bar > .tp-word { flex: none; }
