:root {
  --primary: #FFD43F;
  --primary-dark: #FF9F1C;
  --sky-top: #56CCF2;
  --sky-bottom: #2F80ED;
  --text-dark: #1E293B;
  --white: #FFFFFF;
  --green: #2EC4B6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  padding: 16px;
}

.app-container {
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.badge {
  display: inline-block;
  background: #FF5964;
  color: var(--white);
  font-family: 'Fredoka', cursive;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.challenger {
  font-family: 'Fredoka', cursive;
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 2px;
}

.subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 12px;
}

.score-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 10px 16px;
  display: inline-flex;
  flex-direction: column;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}

.score-label {
  font-size: 10px;
  font-weight: 900;
  color: #64748B;
  letter-spacing: 0.5px;
}

.score-value {
  font-family: 'Fredoka', cursive;
  font-size: 30px;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.1;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.tap-prompt {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  pointer-events: none;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(180deg, #FFD43F 0%, #FF9F1C 100%);
  color: var(--text-dark);
  font-family: 'Fredoka', cursive;
  font-size: 17px;
  font-weight: 900;
  border: none;
  border-radius: 18px;
  padding: 14px 20px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 159, 28, 0.4);
  transition: transform 0.15s ease;
}

.btn-primary:active {
  transform: scale(0.97);
}

.free-text {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 8px;
}
