* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  height: 100%;
  background: #F6B98A;
  color: #22373D;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
#stage {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  background: #FFE3CC;
  touch-action: none;
}
#cv {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.hud {
  display: none;
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  top: calc(10px + env(safe-area-inset-top));
  pointer-events: none;
}
.hud.show { display: block; }
.hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 252, 248, 0.94);
  border: 2px solid #22373D;
  border-radius: 18px;
  padding: 8px 12px 8px 14px;
  box-shadow: 0 5px 0 rgba(61, 43, 34, 0.08), 0 10px 22px rgba(90, 40, 10, 0.08);
}
.meter-col { display: flex; flex-direction: column; gap: 3px; min-width: 72px; }
.meter { display: flex; align-items: baseline; gap: 3px; min-width: 72px; }
.meter b {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.meter b.bump { animation: bump 0.18s ease; }
.meter.hot b { color: #22B4E8; }
.meter span { font-size: 13px; font-weight: 800; color: #5290A0; }
.meter .pace {
  display: none;
  margin-left: 6px;
  padding: 2px 7px 1px;
  border-radius: 999px;
  background: #FF8A3D;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.45;
  vertical-align: 2px;
  box-shadow: 0 2px 0 rgba(180, 70, 10, 0.25);
}
.meter .pace.on { display: inline-block; }
.stair-mini {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  pointer-events: none;
}
.stair-mini.on { display: flex; }
.stair-mini i {
  display: block;
  width: 7px;
  background: #F3E4D8;
  border: 1.5px solid #22373D;
  border-radius: 2px 2px 1px 1px;
  transform-origin: bottom center;
}
.stair-mini i:nth-child(1) { height: 4px; }
.stair-mini i:nth-child(2) { height: 6px; }
.stair-mini i:nth-child(3) { height: 8px; }
.stair-mini i:nth-child(4) { height: 10px; }
.stair-mini i:nth-child(5) { height: 12px; }
.stair-mini i:nth-child(6) { height: 15px; }
.stair-mini i.lit { background: #FF8A3D; }
.stair-mini i.now { animation: stairPulse 0.48s ease; }
@keyframes stairPulse {
  0% { transform: scaleY(1); }
  45% { transform: scaleY(1.45); }
  100% { transform: scaleY(1); }
}
.pace-show {
  display: none;
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: 27%;
  justify-content: center;
  pointer-events: none;
}
.pace-show.on { display: flex; }
.pace-card {
  min-width: 176px;
  padding: 12px 16px 11px;
  border-radius: 18px;
  border: 3px solid #22373D;
  background: #FFFCF8;
  text-align: center;
  box-shadow: 0 6px 0 rgba(61, 43, 34, 0.14), 0 16px 28px rgba(90, 40, 10, 0.16);
}
.pace-show.on .pace-card { animation: paceLife 2.2s ease both; }
.pace-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #5290A0;
}
.stairs {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 52px;
  margin: 8px 0 6px;
}
.stairs i {
  display: block;
  width: 16px;
  border-radius: 5px 5px 3px 3px;
  border: 2px solid #22373D;
  background: #F3E4D8;
  transform-origin: bottom center;
  transform: scaleY(0.12);
}
.stairs i:nth-child(1) { height: 12px; }
.stairs i:nth-child(2) { height: 18px; }
.stairs i:nth-child(3) { height: 26px; }
.stairs i:nth-child(4) { height: 34px; }
.stairs i:nth-child(5) { height: 42px; }
.stairs i:nth-child(6) { height: 50px; }
.stairs i.lit { background: linear-gradient(180deg, #FFC48A 0%, #FF8A3D 100%); }
.pace-show.on .stairs i { animation: stairRise 0.42s cubic-bezier(.18, 1.35, .36, 1) both; }
@keyframes stairRise {
  0% { transform: scaleY(0.12); }
  70% { transform: scaleY(1.08); }
  100% { transform: scaleY(1); }
}
@keyframes paceLife {
  0% { opacity: 0; transform: translateY(16px) scale(0.88); }
  14% { opacity: 1; transform: translateY(0) scale(1.04); }
  22% { opacity: 1; transform: translateY(0) scale(1); }
  76% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-12px) scale(0.98); }
}
.pace-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: #17181A;
}
.pace-mul {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 800;
  color: #22B4E8;
  font-variant-numeric: tabular-nums;
}
.pace-sub {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
  color: #6896A0;
}
.coinbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.coin-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #22373D;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 35% 32%, #FFF6C8 0 20%, transparent 21%),
    radial-gradient(circle at 50% 50%, #FFE08A 0 42%, #FFC83D 43% 72%, #0069E8 73%);
}
.hearts { display: flex; gap: 3px; align-items: center; }
.heart { width: 22px; height: 22px; display: block; }
.pow {
  display: none;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(68px + env(safe-area-inset-top));
  transform: translateX(-50%);
  min-width: 132px;
  background: #22373D;
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px 7px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(61, 43, 34, 0.18);
}
.pow.show { display: block; }
#powText { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.pow-track {
  margin-top: 4px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
#powBar { height: 100%; width: 100%; background: #FF8A3D; border-radius: 4px; }
.hint {
  display: none;
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  top: 46%;
  transform: translateY(-50%);
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.hint.show { display: flex; }
.hint-one { justify-content: center; }
.hint span {
  background: rgba(255, 252, 248, 0.92);
  border: 2px solid #22373D;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 0 rgba(61, 43, 34, 0.08);
}
.hint-mid {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #40778A;
  padding: 0 !important;
}
.sheet {
  display: none;
  position: absolute;
  z-index: 4;
  left: 16px;
  right: 16px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-height: calc(100% - 24px - env(safe-area-inset-top));
  overflow: auto;
  background: #FFFCF8;
  border: 2px solid #22373D;
  border-radius: 24px;
  padding: 14px 14px 12px;
  box-shadow: 0 8px 0 rgba(61, 43, 34, 0.1), 0 18px 36px rgba(90, 40, 10, 0.14);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.sheet.show { display: block; animation: rise 0.42s cubic-bezier(0.2, 0.8, 0.2, 1); }
.sheet.over {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
.sheet.over.show { animation: pop 0.36s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #22373D;
  background: #FFD7D2;
  position: relative;
  flex: none;
  overflow: hidden;
  box-shadow: inset 0 -6px 0 rgba(61, 43, 34, 0.06);
}
.avatar canvas { width: 100%; height: 100%; display: block; }
.skin-block { position: relative; margin: 0 0 10px; }
.skin-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 2px 6px;
}
.skin-head b { font-size: 14px; font-weight: 900; color: #22373D; }
.skin-head span { font-size: 11px; font-weight: 800; color: #6896A0; }
.skin-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
.skin-row::-webkit-scrollbar { height: 0; }
.skin-block:after {
  content: "";
  position: absolute;
  right: 0;
  top: 26px;
  bottom: 8px;
  width: 22px;
  background: linear-gradient(90deg, rgba(255, 252, 248, 0), #FFFCF8);
  pointer-events: none;
}
.skin-card {
  flex: none;
  width: 78px;
  border: 2px solid #C8E3F0;
  background: #FFFCF8;
  border-radius: 16px;
  padding: 6px 4px 7px;
  scroll-snap-align: start;
  box-shadow: 0 3px 0 rgba(61, 43, 34, 0.06);
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.skin-card.is-on { border-color: #FF8A3D; box-shadow: 0 3px 0 #1BA2D9; }
.skin-card:active { transform: translateY(2px); }
.skin-prev {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #22373D;
}
.skin-prev canvas { width: 100%; height: 100%; display: block; }
.skin-lock {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22373D;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.skin-lock .mp-icon { width: 12px; height: 12px; }
.skin-name {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 900;
  color: #22373D;
  text-align: center;
}
.skin-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 1px;
  font-size: 10px;
  font-weight: 800;
  color: #6896A0;
  white-space: nowrap;
}
.skin-tag .mp-icon { width: 12px; height: 12px; }
.skin-card.is-on .skin-tag { color: #22B4E8; }
.skin-now {
  margin: 6px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #6896A0;
}
.btn:disabled {
  background: #E7D3C6;
  color: #56808A;
  box-shadow: 0 5px 0 #A6C2CD;
}
.btn:disabled:active { transform: none; box-shadow: 0 5px 0 #A6C2CD; }
.logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #22373D;
}
.sub { margin-top: 3px; font-size: 13px; font-weight: 700; color: #56808A; }
.rule {
  margin: 10px 0;
  background: #FFF4EA;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
  color: #365F6A;
}
.rule b { color: #FF8A3D; font-weight: 900; }
.legend {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px 8px;
  margin: 0 0 8px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  color: #365F6A;
}
.dot {
  width: 14px;
  height: 14px;
  border: 2px solid #22373D;
  box-sizing: border-box;
  flex: none;
}
.dot.spring { background: #D68AE0; border-radius: 4px; }
.dot.rocket { background: #FF8A3D; border-radius: 7px 7px 3px 3px; }
.dot.fly { background: #D97E9B; border-radius: 50%; }
.dot.shield { background: #8EC5FF; border-radius: 50%; }
.dot.magnet { background: #FF5A6A; border-radius: 2px 2px 8px 8px; }
.dot.heart { background: #FF8AA8; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.pow-note {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 700;
  color: #365F6A;
}
.pow-note b { color: #22B4E8; font-weight: 900; }
.board {
  margin: 0 0 10px;
  background: #FFF4EA;
  border-radius: 16px;
  padding: 8px 8px 6px;
}
.board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 4px;
}
.board-head b {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 900;
  color: #22373D;
}
.board-head .mp-icon { width: 16px; height: 16px; color: #FF8A3D; }
.board-tip {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 800;
  color: #6896A0;
}
.board-head .best {
  margin: 2px 0 0;
  max-width: 48%;
  text-align: right;
  line-height: 1.35;
  flex: none;
}
.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.board-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 12px;
  background: #FFFCF8;
  box-shadow: 0 2px 0 rgba(61, 43, 34, 0.05);
}
.board-row .rk {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #C8E3F0;
  color: #22373D;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.board-row.is-1 .rk { background: #FF8A3D; color: #fff; }
.board-row.is-2 .rk { background: #FFD1A8; }
.board-row.is-3 .rk { background: #FFE0C2; }
.board-row.is-me { box-shadow: inset 0 0 0 2px #FF8A3D; }
.bn {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bs {
  font-size: 13px;
  font-weight: 900;
  color: #22B4E8;
  font-variant-numeric: tabular-nums;
}
.bm {
  min-width: 34px;
  font-size: 11px;
  font-weight: 800;
  color: #6896A0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.board-empty, .board-more {
  margin-top: 4px;
  padding: 8px;
  border-radius: 12px;
  background: #FFFCF8;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #6896A0;
}
.start-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0 -2px;
  padding-top: 8px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0), #FFFCF8 28%);
}
.rank-line {
  margin: 2px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  color: #22B4E8;
}
.pow { max-width: calc(100% - 32px); }
#powText { line-height: 1.25; }
.nick-lab {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #56808A;
  margin-bottom: 8px;
}
.nick {
  display: block;
  width: 100%;
  margin-top: 6px;
  height: 46px;
  border-radius: 14px;
  border: 2px solid #C8E3F0;
  background: #FFF8F2;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #22373D;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}
.nick:focus { border-color: #FF8A3D; }
.nick::placeholder { color: #94B9C3; font-weight: 700; }
.best {
  margin: 0 0 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #6896A0;
}
.btn {
  display: block;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 16px;
  background: #FF8A3D;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 5px 0 #1BA2D9;
  cursor: pointer;
  touch-action: manipulation;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #1BA2D9; }
.btn.ghost {
  margin-top: 8px;
  background: #FFF6EE;
  color: #22373D;
  box-shadow: 0 5px 0 #E4D0C2;
}
.btn.ghost:active { box-shadow: 0 1px 0 #E4D0C2; }
.btn.watch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #FFF6EE;
  color: #22B4E8;
  border: 2px solid #FF8A3D;
  box-shadow: 0 5px 0 #AED8E8;
}
.btn.watch .mp-icon { width: 22px; height: 22px; }
.btn.watch:active { box-shadow: 0 1px 0 #AED8E8; }
.btn.watch:disabled {
  background: #F6EBE3;
  color: #78A5B0;
  border-color: #E7D3C6;
  box-shadow: 0 5px 0 #E4D0C2;
}
.btn.watch:disabled:active { transform: none; box-shadow: 0 5px 0 #E4D0C2; }
.ad-hint {
  margin: 6px 0 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #6896A0;
}
.toast {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: calc(14px + env(safe-area-inset-top));
  transform: translateX(-50%) translateY(-8px);
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border-radius: 14px;
  background: #22373D;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.trial-bar, #unlockBtn, #trialHint { display: none; }
.trial-bar.on { display: block; }
#unlockBtn.on {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
#trialHint.on { display: block; }
.trial-bar p, .skill-tip {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #FFF6EE;
  border: 2px solid #C0E3F0;
  font-size: 12px;
  font-weight: 800;
  color: #40778A;
  line-height: 1.45;
}
.btn.slim {
  height: 44px;
  margin-bottom: 8px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn.slim .mp-icon { width: 18px; height: 18px; }
.rush {
  display: none;
  margin-top: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 14px;
  border: 2px solid #22373D;
  background: #FFF6D8;
  box-shadow: 0 4px 0 rgba(61, 43, 34, 0.08);
  font-size: 13px;
  font-weight: 800;
  color: #18538A;
}
.rush.show { display: flex; }
.rush b {
  min-width: 28px;
  font-size: 20px;
  line-height: 1;
  color: #22B4E8;
  font-variant-numeric: tabular-nums;
}
.skill-pair { display: flex; flex-direction: column; gap: 8px; }
.skill-chip { display: flex; align-items: center; gap: 10px; text-align: left; }
.skill-chip .face {
  width: 44px;
  height: 44px;
  flex: none;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.32);
}
.skill-chip .ico { width: 26px; height: 26px; }
.skill-meta b { display: block; font-size: 14px; line-height: 1.2; color: #22373D; }
.skill-meta span { display: block; margin-top: 1px; font-size: 12px; font-weight: 800; line-height: 1.35; color: #5290A0; }
.skill-tail {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  color: #5290A0;
}
.face {
  border-radius: 50%;
  border: 2px solid #22373D;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.face .ico { display: block; }
.face .ico svg { width: 100%; height: 100%; display: block; }
.face.k-up3 { background: linear-gradient(160deg, #FFD7A8 0%, #FF8A3D 58%, #1AB5F0 100%); }
.face.k-rocket5 { background: linear-gradient(160deg, #FFC98A 0%, #FF6A2A 52%, #12CEE2 100%); }
.face.k-hover { background: linear-gradient(160deg, #C9F6FF 0%, #E05B4E 55%, #C03F2A 100%); }
.face.k-slow { background: linear-gradient(160deg, #DFF6B8 0%, #9C5AC8 55%, #7E389E 100%); }
.face.k-guard { background: linear-gradient(160deg, #FFD4E0 0%, #FF7A98 55%, #48F0AF 100%); }
.skills {
  display: none;
  position: absolute;
  z-index: 3;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}
.skills.show { display: flex; }
.skill-btn {
  width: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #22373D;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.skill-btn .face {
  width: 68px;
  height: 68px;
  border-width: 2.5px;
  box-shadow: 0 4px 0 rgba(61, 43, 34, 0.16), inset 0 5px 0 rgba(255, 255, 255, 0.34);
}
.skill-btn .ico { width: 38px; height: 38px; }
.skill-btn .badge {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 999px;
  border: 2px solid #22373D;
  background: #fff;
  color: #22B4E8;
  font-size: 12px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
  box-sizing: border-box;
}
.skill-btn .cap {
  margin-top: 6px;
  min-width: 76px;
  max-width: 92px;
  padding: 3px 8px 4px;
  border-radius: 14px;
  background: rgba(255, 252, 248, 0.96);
  border: 2px solid #22373D;
  box-shadow: 0 3px 0 rgba(61, 43, 34, 0.1);
  text-align: center;
}
.skill-btn .nm { display: block; font-size: 14px; font-weight: 900; line-height: 1.15; }
.skill-btn .ct {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 800;
  color: #5290A0;
  line-height: 1.2;
  white-space: nowrap;
}
.skill-btn:active .face { transform: translateY(3px); box-shadow: 0 1px 0 rgba(61, 43, 34, 0.16), inset 0 5px 0 rgba(255, 255, 255, 0.34); }
.skill-btn.spent .face {
  background: linear-gradient(160deg, #EFE7E1, #D5C8C0);
  box-shadow: none;
}
.skill-btn.spent .ico { opacity: 0.45; }
.skill-btn.spent .badge { color: #6C848A; background: #F3ECE7; }
.skill-btn.spent .cap {
  background: rgba(231, 221, 214, 0.96);
  border-color: #CDBEB4;
  box-shadow: none;
  color: #6C848A;
}
.skill-btn.spent .ct { color: #6C848A; }
.skill-btn.spent:active .face { transform: none; }
.skill-btn.shake { animation: skillshake 0.28s linear; }
.has-rush .pow { top: calc(118px + env(safe-area-inset-top)); }
.ad-mask {
  display: none;
  position: absolute;
  z-index: 20;
  inset: 0;
  background: rgba(61, 43, 34, 0.46);
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.ad-mask.show { display: flex; }
.ad-card {
  width: 100%;
  max-width: 320px;
  background: #FFFCF8;
  border: 2px solid #22373D;
  border-radius: 24px;
  padding: 18px 16px 14px;
  text-align: center;
  box-shadow: 0 8px 0 rgba(61, 43, 34, 0.12);
}
.ad-card b { font-size: 18px; }
.ad-card p {
  margin: 8px 0;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: #FF8A3D;
}
.ad-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  color: #40778A;
}
@keyframes skillshake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
.btn:focus-visible, .nick:focus-visible { outline: 3px solid rgba(255, 138, 61, 0.45); outline-offset: 2px; }
.score-hero { text-align: center; margin: 8px 0 0; }
.score-hero b {
  font-size: 64px;
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.score-hero span { font-size: 16px; font-weight: 900; color: #FF8A3D; margin-left: 4px; }
.score-sub { text-align: center; margin-top: 4px; font-size: 15px; font-weight: 800; color: #56808A; }
.badge {
  display: none;
  width: fit-content;
  margin: 8px auto 0;
  background: #FF8A3D;
  color: #fff;
  border: 2px solid #22373D;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 900;
}
.badge.show { display: block; }
.sheet.over .best { margin-top: 8px; }
@keyframes bump {
  50% { transform: scale(1.16); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(-46%) scale(0.96); }
  to { opacity: 1; transform: translateY(-50%) scale(1); }
}
@media (max-height: 640px) {
  .logo { font-size: 22px; }
  .score-hero b { font-size: 48px; }
  .rule { margin: 8px 0; padding: 8px 10px; }
  .avatar { width: 40px; height: 40px; }
  .skin-prev { width: 54px; height: 54px; }
  .skin-card { width: 70px; padding-top: 5px; }
  .pow-note { margin-bottom: 6px; }
  .score-hero { margin-top: 2px; }
  .ad-hint { margin-bottom: 6px; }
  .board-row { padding: 4px 6px; }
}
