/* Skate: keys look like keycaps in the riding hint; the trick names are one small line above it. */
#hint .sk b {
  display: inline-block;
  min-width: 1.3em;
  padding: 0 4px;
  border-radius: 5px;
  background: #fff8e626;
  font-weight: 600;
}
#hint .skq {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  padding: 0;
  margin-left: 4px;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  box-shadow: none;
  vertical-align: 1px;
}
#trick {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 0 2px 0 #0008;
  white-space: nowrap;
  pointer-events: none;
  animation: trickpop 0.2s ease-out;
}
@keyframes trickpop {
  from {
    transform: translateX(-50%) scale(1.25);
    opacity: 0;
  }
}
#skcard {
  position: fixed;
  z-index: 4;
  right: 16px;
  bottom: 16px;
  width: 300px;
  max-height: calc(100% - 32px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  font-size: 13px;
}
#skcard[hidden] {
  display: none;
}
#skcard header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--yellow);
  font-size: 15px;
}
#skcard header button {
  width: 36px;
  height: 36px;
  padding: 0;
  box-shadow: none;
}
#skcard h4 {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
}
#skcard kbd {
  justify-self: start;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 5px;
  background: #fff8e626;
  white-space: nowrap;
}
body.touch #hint .sk {
  white-space: nowrap;
}
body.touch #skcard {
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  max-height: 55%;
  border-radius: 16px 16px 0 0;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
}
/* Manual balance: the green band is the level. The marker leaves it and you fall. */
#bal {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 220px;
  height: 18px;
  transform: translateX(-50%);
  background: #0008;
  border-radius: 9px;
  pointer-events: none;
  box-shadow: 0 3px 0 #0005;
}
#bal i {
  position: absolute;
  left: 12%;
  width: 76%;
  top: 0;
  bottom: 0;
  background: var(--green);
  opacity: 0.85;
}
#bal em {
  position: absolute;
  left: 50%;
  top: 2px;
  bottom: 2px;
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  opacity: 0.8;
}
#bal b {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 6px;
  margin-left: -3px;
  background: var(--paper);
  border-radius: 3px;
}
#bal.warn b {
  background: var(--yellow);
}
