.stickman-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 208, 76, 0.18), transparent 24%),
    radial-gradient(circle at 82% 22%, rgba(114, 217, 255, 0.18), transparent 25%),
    linear-gradient(135deg, #101820 0%, #183438 54%, #1b1b25 100%);
}

.stickman-layout {
  grid-template-columns: minmax(240px, 0.68fr) minmax(420px, 1.7fr) minmax(240px, 0.68fr);
}

.stickman-stage {
  background: rgba(246, 250, 245, 0.98);
}

.stickman-wrap {
  background: #0f1722;
  min-height: min(68vh, 680px);
  touch-action: none;
  user-select: none;
}

.stickman-wrap canvas {
  cursor: crosshair;
  min-height: min(68vh, 680px);
  touch-action: none;
  user-select: none;
}

.stickman-page .arcade-logo {
  background: linear-gradient(135deg, #72d9ff, #42d66f);
}

.stickman-page .arcade-title p {
  color: #0c8f7e;
}

.stickman-page .arcade-button {
  background: linear-gradient(180deg, #72e3ff, #21a9dc 58%, #147caa);
  box-shadow: 0 7px 0 #0c5a7d;
  color: #07151c;
}

.stickman-page .arcade-button.secondary {
  background: linear-gradient(180deg, #fff, #e7efed);
  box-shadow: none;
  color: #223133;
}

.stickman-page #hookHold[aria-pressed="true"] {
  animation: hook-ready 780ms ease-in-out infinite alternate;
  background: linear-gradient(180deg, #ffe88a, #ffd04c 58%, #d89b1d);
  box-shadow: 0 7px 0 #9c7015;
}

.stickman-page #hookSound[aria-pressed="true"] {
  background: linear-gradient(180deg, #ffe88a, #ffd04c 58%, #d89b1d);
  box-shadow: 0 5px 0 #9c7015;
  color: #171207;
}

.stickman-page #hookQuality[aria-pressed="true"] {
  background: linear-gradient(180deg, #d9fff0, #42d66f 58%, #239a48);
  box-shadow: 0 5px 0 #176c32;
  color: #07150d;
}

.stickman-page .arcade-stat strong {
  color: #72d9ff;
}

.hook-sound,
.hook-quality {
  min-height: 42px;
}

@keyframes hook-ready {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-2px);
  }
}

.hook-progress {
  background: #13222b;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 9px;
  padding: 12px;
}

.hook-progress div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.hook-progress span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hook-progress strong {
  color: #ffd04c;
  font-size: 20px;
}

.hook-meter {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  display: block;
  height: 12px;
  overflow: hidden;
}

.hook-meter i {
  background: linear-gradient(90deg, #42d66f, #72d9ff, #ffd04c);
  border-radius: inherit;
  display: block;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 120ms ease;
  width: 100%;
}

.hook-progress small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.hook-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hook-keys span {
  align-items: center;
  background: #13222b;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
}

.hook-keys kbd {
  background: #ffd04c;
  border-radius: 6px;
  color: #1b170b;
  font: inherit;
  padding: 3px 6px;
}

@media (max-width: 1080px) {
  .stickman-layout {
    grid-template-columns: 1fr;
  }

  .stickman-stage {
    order: 1;
  }

  .stickman-control-panel {
    order: 2;
  }

  .stickman-stats-panel {
    order: 3;
  }
}

@media (max-width: 640px) {
  .stickman-layout {
    gap: 12px;
  }

  .stickman-stage {
    padding: 8px;
  }

  .stickman-wrap,
  .stickman-wrap canvas {
    min-height: clamp(420px, 62vh, 540px);
  }

  .stickman-control-panel,
  .stickman-stats-panel {
    gap: 10px;
    padding: 12px;
  }

  .stickman-page .arcade-row,
  .stickman-page .arcade-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stickman-page .arcade-stat {
    min-height: 58px;
    padding: 9px;
  }

  .stickman-page .arcade-stat strong {
    font-size: 20px;
    margin-top: 3px;
  }

  .hook-keys span {
    flex: 1 1 120px;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .stickman-wrap,
  .stickman-wrap canvas {
    min-height: 400px;
  }

  .stickman-page .arcade-row {
    grid-template-columns: 1fr;
  }
}
