/* ===== MUSCLE DARTS - STYLE ===== */
:root {
  --bg: #0a0a0f;
  --surface: #14141f;
  --neon-pink: #ff1493;
  --neon-cyan: #00e5ff;
  --neon-green: #39ff14;
  --neon-gold: #ffd700;
  --text: #e0e0e0;
  --text-dim: #888;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', 'Hiragino Sans', 'Meiryo', sans-serif;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#app {
  width: 100%;
  height: 100%;
  position: relative;
}

/* ===== SCREENS ===== */
.screen {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===== TITLE SCREEN ===== */
.title-content {
  text-align: center;
  padding: 20px;
  max-width: 480px;
}

.title-emoji {
  font-size: 64px;
  margin-bottom: 12px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.title-main {
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  margin-bottom: 4px;
}

.title-sub {
  font-size: 20px;
  color: var(--neon-cyan);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.title-desc {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 20px;
}

.title-rules {
  background: var(--surface);
  border: 1px solid rgba(255, 20, 147, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 28px;
}

.title-rules p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 8px;
}

.title-rules p:last-child {
  margin-bottom: 0;
}

/* ===== BUTTONS ===== */
.btn-neon {
  display: inline-block;
  padding: 14px 40px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--neon-pink), #c4007a);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.4);
  font-family: inherit;
}

.btn-neon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 20, 147, 0.6);
}

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

.btn-share {
  background: linear-gradient(135deg, var(--neon-cyan), #0090b0);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  margin-left: 10px;
}

.btn-share:hover {
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
}

/* ===== PATREON LINK ===== */
.patreon-link {
  margin-top: 24px;
}

.patreon-link a {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  color: var(--neon-gold);
  text-decoration: none;
  border: 1px solid var(--neon-gold);
  border-radius: 30px;
  transition: all 0.3s;
}

.patreon-link a:hover {
  background: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* ===== GAME SCREEN ===== */
.game-hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  padding: 12px 8px;
  background: rgba(10, 10, 15, 0.9);
  border-bottom: 1px solid rgba(255, 20, 147, 0.3);
  z-index: 10;
}

.hud-item {
  text-align: center;
}

.hud-label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hud-value {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--neon-cyan);
}

.canvas-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#dartboard {
  display: block;
  cursor: crosshair;
}

.game-instruction {
  position: absolute;
  bottom: 20px;
  left: 0; right: 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== THROW FEEDBACK ===== */
.throw-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  font-weight: 900;
  pointer-events: none;
  z-index: 20;
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.throw-feedback.hidden {
  display: none;
}

.throw-feedback.show {
  animation: feedbackPop 0.8s ease-out forwards;
}

@keyframes feedbackPop {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  30% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) translateY(-40px); opacity: 0; }
}

/* ===== RESULT SCREEN ===== */
.result-content {
  text-align: center;
  padding: 20px;
  max-width: 480px;
}

.result-emoji {
  font-size: 72px;
  margin-bottom: 12px;
  animation: pulse 2s ease-in-out infinite;
}

.result-title {
  font-size: 24px;
  color: var(--neon-cyan);
  margin-bottom: 16px;
}

.result-score {
  font-size: 80px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--neon-gold), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.result-score-label {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.result-rank {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.6;
}

.result-stats {
  background: var(--surface);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
  font-size: 14px;
  line-height: 2;
}

.result-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .title-main { font-size: 36px; }
  .title-sub { font-size: 16px; }
  .result-score { font-size: 60px; }
  .btn-neon { padding: 12px 28px; font-size: 16px; }
  .hud-value { font-size: 20px; }
}

@media (max-height: 600px) {
  .title-emoji { font-size: 40px; margin-bottom: 8px; }
  .title-main { font-size: 32px; }
  .title-rules { padding: 10px; margin-bottom: 16px; }
  .result-emoji { font-size: 48px; }
  .result-score { font-size: 56px; }
}
