.crossy-shell {
  --crossy-stage-max: 1260px;
  --crossy-panel-border: rgba(15, 23, 42, 0.08);
  --crossy-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
  --crossy-text: #152033;
  --crossy-muted: #607089;
  --crossy-console: #f4f6fb;
}

.crossy-shell .studio-card,
.crossy-shell .studio-card-head,
.crossy-shell .studio-card-title,
.crossy-shell .studio-card-note,
.crossy-shell .studio-btn-row,
.crossy-shell .studio-metric-grid,
.crossy-shell .studio-metric-card,
.crossy-shell .studio-help-list {
  all: unset;
}

.crossy-stage-card {
  width: 100%;
  max-width: var(--crossy-stage-max);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.crossy-stage-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #d7eefc 0%, #edf8ff 18%, #aadf57 18%, #aadf57 100%);
  border: 1px solid var(--crossy-panel-border);
  box-shadow: var(--crossy-shadow);
}

.crossy-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 28 / 15;
}

.crossy-hud {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.crossy-hud-left {
  top: 26px;
  left: 30px;
}

.crossy-score-stack {
  display: grid;
  gap: 6px;
  color: #fff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.crossy-hud-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.88;
}

.crossy-score-stack strong {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  font-weight: 800;
}

.crossy-hud-right {
  top: 22px;
  right: 22px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.crossy-hud-pill {
  min-width: 88px;
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  color: #1a2437;
}

.crossy-hud-pill span {
  font-size: 12px;
  line-height: 1.3;
  color: #65728a;
}

.crossy-hud-pill strong {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.crossy-input-hint {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  max-width: 220px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
  color: #273247;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.crossy-overlay {
  position: absolute;
  left: 26px;
  bottom: 22px;
  z-index: 3;
  max-width: min(340px, calc(100% - 52px));
  display: grid;
  gap: 6px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  color: var(--crossy-text);
}

.crossy-overlay strong {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.crossy-overlay span {
  font-size: 13px;
  line-height: 1.55;
  color: var(--crossy-muted);
}

.crossy-overlay-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.crossy-overlay-actions .studio-btn {
  min-width: 124px;
}

.crossy-status-toast {
  position: absolute;
  left: 50%;
  bottom: 210px;
  z-index: 3;
  transform: translateX(-50%) translateY(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: min(320px, calc(100% - 240px));
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.crossy-status-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.crossy-floating-pad {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  transform: translateX(-50%);
  display: grid;
  gap: 10px;
  justify-items: center;
}

.crossy-pad-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crossy-pad-btn {
  min-width: 86px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #fff;
  color: #10131a;
  font-size: 30px;
  font-weight: 800;
  box-shadow: 5px 7px 0 #252525;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.crossy-pad-up {
  min-width: 240px;
}

.crossy-pad-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 9px 0 #252525;
}

.crossy-pad-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 3px 0 #252525;
}

@media (max-width: 1120px) {
  .crossy-floating-pad {
    bottom: 14px;
  }
}

@media (max-width: 960px) {
  .crossy-input-hint {
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 190px;
  }

  .crossy-hud-right {
    flex-wrap: wrap;
    max-width: 250px;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .crossy-stage-wrap {
    border-radius: 22px;
  }

  .crossy-hud-left {
    top: 16px;
    left: 16px;
  }

  .crossy-score-stack strong {
    font-size: 34px;
  }

  .crossy-hud-right {
    display: none;
  }

  .crossy-input-hint {
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 160px;
    padding: 8px 12px;
    font-size: 12px;
    text-align: center;
  }

  .crossy-overlay {
    left: 14px;
    bottom: 14px;
    max-width: 240px;
  }

  .crossy-overlay-actions {
    flex-direction: column;
  }

  .crossy-overlay-actions .studio-btn {
    width: 100%;
  }

  .crossy-status-toast {
    bottom: 94px;
    min-width: min(280px, calc(100% - 90px));
  }

  .crossy-floating-pad {
    bottom: 10px;
  }

  .crossy-pad-up {
    min-width: min(100%, 212px);
  }

  .crossy-pad-btn {
    min-width: 72px;
    height: 56px;
    font-size: 26px;
  }
}

@media (max-width: 520px) {
  .crossy-overlay strong {
    font-size: 18px;
  }

  .crossy-status-toast {
    bottom: 88px;
    min-height: 38px;
    min-width: min(260px, calc(100% - 28px));
    padding-inline: 12px;
    font-size: 13px;
  }

  .crossy-floating-pad {
    left: auto;
    right: 14px;
    transform: none;
    justify-items: end;
  }

  .crossy-pad-row {
    width: 212px;
    gap: 10px;
  }

  .crossy-pad-btn {
    min-width: 0;
    width: 100%;
  }
}
