/* A quiet shared stage; animation is reserved for the player's action. */
.brand-logo {
  width: 35px;
  height: 35px;
  object-fit: contain;
  margin-right: 9px;
  flex: none;
}
.phone .brand-logo {
  width: 30px;
  height: 30px;
}
.start-game {
  font-size: 13px;
  padding: 12px 18px;
  white-space: nowrap;
  min-height: 42px;
}
.start-game:disabled {
  opacity: 0.4;
  cursor: default;
}
#game-stage {
  padding: 14px 0 0;
}
.in-game #host-view > .welcome,
.in-game #host-view > .phone-access,
.in-game #host-view > .players,
.in-game #host-view > .lobby-footer {
  display: none;
}
.game-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.game-heading h1 {
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -0.075em;
  line-height: 1.15;
  margin: 8px 0 12px;
}
.game-heading h1 span {
  color: inherit;
}
.game-heading p:not(.eyebrow) {
  font-size: 15px;
  color: #7c7c73;
  margin: 0;
}
.game-clock {
  text-align: right;
  display: grid;
  gap: 4px;
}
.game-clock > span {
  font-size: 11px;
  color: #93958c;
  letter-spacing: 0.08em;
}
.game-clock strong {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.mochi-stage {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 45px);
  position: relative;
  margin: 40px 0 25px;
  padding: 0 24px;
}
.mochi-stage:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 236px;
  height: 23px;
  border-radius: 8px;
  background: linear-gradient(#d9c3a5, #c9ae8b);
  box-shadow: 0 12px 24px #85785b13;
}
.mochi-player {
  min-width: 0;
  flex: 1;
  max-width: 280px;
  text-align: center;
  position: relative;
}
.station-label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  min-height: 25px;
}
.station-label > span {
  color: var(--player-color);
  font-weight: 750;
  letter-spacing: 0.04em;
}
.station-label > b {
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}
.pet-scene {
  height: 238px;
  position: relative;
  isolation: isolate;
}
.game-pet {
  position: absolute;
  height: 205px;
  width: 100%;
  object-fit: contain;
  left: 0;
  bottom: 15px;
  z-index: 1;
  will-change: transform;
}
.pet-shadow {
  position: absolute;
  width: 65%;
  height: 18px;
  border-radius: 50%;
  background: #50432415;
  filter: blur(5px);
  bottom: 9px;
  left: 17%;
}
.mortar {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 114px;
  height: 78px;
  border-radius: 8px 8px 24px 24px;
  background: linear-gradient(95deg, #bf9670, #ddbc94 40%, #c79f77);
  box-shadow:
    inset -3px 0 8px #72502f12,
    0 5px 8px #78604513;
}
.mortar:before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 23px;
  border-radius: 50%;
  background: #aa825c;
  box-shadow: inset 0 3px 5px #65462a44;
  border: 5px solid #dcc3a0;
  box-sizing: border-box;
}
.mortar > span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #8c6d49;
}
.mochi {
  position: absolute;
  z-index: 1;
  top: -3px;
  width: 54px;
  height: 16px;
  background: #f6efdb;
  border-radius: 50%;
  left: 30px;
  box-shadow: inset 0 -2px 3px #d0c5a3;
}
.mallet {
  position: absolute;
  z-index: 4;
  left: 72%;
  bottom: 77px;
  width: 11px;
  height: 91px;
  background: linear-gradient(90deg, #b18b66, #d3b18e);
  border-radius: 5px;
  transform: rotate(16deg);
  transform-origin: 50% 90%;
}
.mallet i {
  position: absolute;
  top: 0;
  left: -23px;
  width: 59px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(#d4b692, #b68e67);
  box-shadow:
    inset 3px 0 0 #ead4b280,
    1px 4px 7px #69513716;
}
.game-score {
  display: block;
  font-size: 33px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  margin-top: 22px;
}
.game-grade {
  display: block;
  font-size: 12px;
  color: #838579;
  margin-top: 6px;
  min-height: 18px;
}
.game-combo {
  display: block;
  min-height: 17px;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--player-color);
}
[data-grade="perfect"] .game-grade,
#hit-feedback[data-grade="perfect"] {
  color: #568d75;
}
.beat-section {
  margin: 10px auto 0;
  max-width: 960px;
  text-align: center;
}
.beat-section > span {
  font-size: 12px;
  color: #86887d;
}
.beat-rail {
  height: 66px;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}
.beat-rail:before {
  content: "";
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  height: 1px;
  background: #d6d9d0;
}
#beat-notes {
  position: absolute;
  inset: 0;
}
#beat-notes i {
  position: absolute;
  left: 0;
  top: 24px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #aab5a5;
  border: 3px solid #f8f8f2;
  box-shadow: 0 0 0 1px #c5cec0;
  will-change: transform;
}
.strike-line {
  position: absolute;
  left: 50%;
  width: 1px;
  top: 5px;
  bottom: 5px;
  background: #b28f72;
}
.beat-target {
  position: absolute;
  left: calc(50% - 14px);
  top: 18px;
  width: 28px;
  height: 28px;
  border: 5px solid #f6e9dd;
  box-shadow: 0 0 0 1px #d9c5b4;
  border-radius: 50%;
  background: #c58c68;
}
.game-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #dedfd7;
  margin-top: 8px;
  padding-top: 18px;
  gap: 14px;
  min-height: 60px;
}
.game-bottom > span {
  font-size: 12px;
  color: #7a8073;
}
.game-bottom .primary {
  font-size: 14px;
  min-height: 44px;
  padding: 12px 20px;
}
.motion-setup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 14px;
}
.motion-setup button {
  font-size: 12px;
  color: #658373;
}
.motion-setup span {
  font-size: 10px;
  color: #8b8e83;
  max-width: 190px;
}
.in-game #identity-view > .stick-area,
.in-game #identity-view > #identify-button,
.in-game #identity-view > .message-form,
.in-game #identity-view > .phone-actions,
.in-game #identity-view > .avatar-panel,
.in-game #identity-view > .rename-form {
  display: none;
}
.in-game #avatar-toggle,
.in-game #rename-toggle {
  visibility: hidden;
}
.in-game .identity-strip {
  margin-bottom: 24px;
}
#phone-game {
  text-align: center;
}
#phone-game > .eyebrow {
  font-size: 10px;
  letter-spacing: 0.1em;
  margin: 0 0 18px;
}
.phone-score strong {
  display: block;
  font-size: 56px;
  font-weight: 550;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.phone-score > span {
  font-size: 9px;
  color: #92998c;
  letter-spacing: 0.2em;
}
.phone-beat {
  font-size: 13px;
  color: #808675;
  margin: 18px 0;
}
.hit-pad {
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
  width: 100%;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid #dbe2d5;
  border-radius: 32px;
  background: #eef1e8;
  color: #4d6451;
  box-shadow: inset 0 1px 0 #fff;
  cursor: pointer;
}
.hit-pad .pad-mark {
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
}
.hit-pad strong {
  font-size: 19px;
  font-weight: 600;
}
.hit-pad small {
  font-size: 11px;
  color: #7c8a74;
}
.hit-pad:disabled {
  opacity: 0.5;
  cursor: default;
}
#hit-feedback {
  min-height: 24px;
  font-size: 15px;
  color: #8b927f;
  margin: 20px 0;
}
#phone-result {
  font-size: 13px;
  line-height: 1.7;
}
.in-game .phone-bottom {
  margin-top: 28px;
}
@media (min-width: 751px) and (max-height: 820px) {
  .in-game .topbar {
    margin-bottom: 15px;
  }
  .mochi-stage {
    margin-top: 23px;
    margin-bottom: 12px;
  }
  .pet-scene {
    height: 203px;
  }
  .game-pet {
    height: 180px;
  }
  .mochi-stage:before {
    top: 201px;
  }
  .game-heading h1 {
    font-size: 42px;
  }
  .game-clock strong {
    font-size: 59px;
  }
  .game-score {
    font-size: 29px;
  }
  .beat-rail {
    height: 58px;
  }
  .game-bottom {
    padding-top: 12px;
  }
}
@media (max-width: 750px) {
  .game-heading {
    gap: 15px;
  }
  .game-heading h1 {
    font-size: 31px;
  }
  .game-heading p:not(.eyebrow) {
    font-size: 12px;
  }
  .game-clock strong {
    font-size: 40px;
  }
  .mochi-stage {
    flex-wrap: wrap;
    padding: 0;
    gap: 20px 12px;
    margin-top: 28px;
  }
  .mochi-player {
    flex: 1 1 42%;
    max-width: none;
  }
  .mochi-stage:before {
    display: none;
  }
  .pet-scene {
    height: 175px;
  }
  .game-pet {
    height: 157px;
  }
  .mortar {
    width: 85px;
    height: 58px;
  }
  .mochi {
    left: 20px;
    width: 44px;
  }
  .mallet {
    bottom: 60px;
    height: 68px;
    width: 8px;
  }
  .mallet i {
    width: 47px;
    height: 24px;
    left: -19px;
  }
  .game-score {
    font-size: 28px;
    margin-top: 13px;
  }
  .game-bottom {
    flex-wrap: wrap;
  }
  .station-label {
    font-size: 12px;
  }
  .motion-setup {
    align-items: flex-start;
  }
  .start-game {
    padding: 10px 13px;
  }
  .lobby-footer {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .game-pet,
  .mallet,
  #beat-notes i {
    will-change: auto;
  }
  .hit-pad {
    transition: none;
  }
}

#beat-notes i {left:-8px}
.in-game #avatar-toggle {visibility:visible;pointer-events:none}
.in-game #avatar-toggle span {display:none}
