/* A Ra Cacadora v1.0.0 */
.rac-wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #1a1a2e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  user-select: none;
}

/* HUD */
.rac-hud {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #16213e;
  padding: 8px 16px;
  border-bottom: 2px solid #0f3460;
}
.rac-hud-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rac-hud-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #7986cb; }
.rac-hud-val { font-size: 20px; font-weight: 700; color: #e8f5e9; min-width: 50px; text-align: center; }

/* Canvas */
#rac-canvas {
  display: block;
  width: 100%;
  cursor: none;
}

/* Overlays */
.rac-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 30, 0.82);
  backdrop-filter: blur(4px);
  z-index: 10;
}
.rac-hidden { display: none !important; }

.rac-panel {
  background: linear-gradient(145deg, #1a1a3e, #0d0d1f);
  border: 2px solid #3f51b5;
  border-radius: 16px;
  padding: 32px 40px;
  text-align: center;
  box-shadow: 0 0 40px rgba(63,81,181,0.4);
  max-width: 360px;
  width: 90%;
}

.rac-title {
  font-size: 26px;
  font-weight: 800;
  color: #69f0ae;
  text-shadow: 0 0 20px rgba(105,240,174,0.5);
  margin-bottom: 10px;
}
.rac-sub {
  color: #b0bec5;
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.6;
}
.rac-sub small { font-size: 12px; color: #78909c; }

/* Difficulty buttons */
.rac-diff-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.rac-diff-btn {
  padding: 7px 16px;
  border: 2px solid #3f51b5;
  background: transparent;
  color: #90caf9;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.rac-diff-btn:hover { background: rgba(63,81,181,0.3); }
.rac-diff-btn.rac-diff-active {
  background: #3f51b5;
  color: #fff;
  border-color: #7986cb;
}

/* Main action button */
.rac-btn-main {
  display: inline-block;
  padding: 12px 36px;
  background: linear-gradient(135deg, #43a047, #1b5e20);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(67,160,71,0.4);
  transition: transform .15s, box-shadow .15s;
  margin-bottom: 16px;
}
.rac-btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67,160,71,0.6);
}
.rac-btn-main:active { transform: translateY(0); }

/* Keyboard hint */
.rac-controls-hint {
  color: #546e7a;
  font-size: 12px;
  margin: 0;
}
.rac-controls-hint kbd {
  background: #263238;
  border: 1px solid #37474f;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  color: #90a4ae;
}

/* Mobile controls */
.rac-mob-controls {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #0d0d1f;
  border-top: 2px solid #0f3460;
  gap: 8px;
}
.rac-mob-btn {
  flex: 1;
  padding: 14px 0;
  background: #16213e;
  border: 2px solid #3f51b5;
  color: #90caf9;
  border-radius: 10px;
  font-size: 22px;
  cursor: pointer;
  transition: background .1s;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.rac-mob-btn:active, .rac-mob-btn.pressed { background: #3f51b5; }
.rac-mob-fire { background: #1b5e20 !important; border-color: #43a047 !important; color: #fff !important; }
.rac-mob-fire:active { background: #43a047 !important; }

@media (max-width: 600px) {
  .rac-mob-controls { display: flex; }
  .rac-panel { padding: 24px 20px; }
  .rac-title { font-size: 20px; }
}
