@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
/* Responsive sizing variables and mobile tap fixes */
:root {
  /* Base (mobile) sizes — overridden at breakpoints via media queries */
  --btn-size: 64px;
  --btn-font: 1.1rem;
  --heading-size: 1.6rem;
  --result-size: 1.05rem;
  --score-size: 1rem;
  --choice-size: 0.95rem;
  --reset-padding: 10px 18px;
  --btn-border: 2px;
  --reset-border: 1px;
  --reset-font-size: 0.95rem;
  --reset-radius: 12px;
  --h4-margin: 12px;
  --move-margin: 6px;
  --result-margin-top: 10px;
  --score-margin-top: 8px;
  --choice-margin: 8px;
  --reset-margin-top: 10px;
}

/* Larger screens - tablet */
@media (min-width: 600px) {
  :root {
    --btn-size: 100px;
    --btn-font: 1.6rem;
    --heading-size: 2.6rem;
    --result-size: 1.6rem;
    --score-size: 1.2rem;
    --choice-size: 1.1rem;
    --reset-padding: 12px 22px;
    --btn-border: 2.5px;
    --reset-border: 1.5px;
    --reset-font-size: 1rem;
    --reset-radius: 18px;
    --h4-margin: 20px;
    --move-margin: 10px;
    --result-margin-top: 18px;
    --score-margin-top: 12px;
    --choice-margin: 12px;
    --reset-margin-top: 14px;
  }
}

/* Desktop and large screens */
@media (min-width: 1024px) {
  :root {
    --btn-size: 140px;
    --btn-font: 2rem;
    --heading-size: 3.2rem;
    --result-size: 2rem;
    --score-size: 1.4rem;
    --choice-size: 1.3rem;
    --reset-padding: 14px 26px;
    --btn-border: 3px;
    --reset-border: 2px;
    --reset-font-size: 1.08rem;
    --reset-radius: 24px;
    --h4-margin: 28px;
    --move-margin: 14px;
    --result-margin-top: 24px;
    --score-margin-top: 18px;
    --choice-margin: 18px;
    --reset-margin-top: 20px;
  }
}

/* Remove mobile tap highlight and make touch interactions snappier */
button,
.move-btn,
.reset-btn {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}

body {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #00ff88;
  font-family: "Roboto", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  align-items: center;
  justify-content: center;
  margin: 0;
}

h4 {
  font-weight: bold;
  font-size: var(--heading-size);
  text-shadow: 0 0 20px #00ff88, 0 0 40px #00ff88;
  margin-bottom: var(--h4-margin);
  letter-spacing: 3px;
}

.move-btn {
  font-size: var(--btn-font);
  height: var(--btn-size);
  width: var(--btn-size);
  margin: var(--move-margin);
  cursor: pointer;
  background: linear-gradient(135deg, #ff006e, #8338ec);
  border: var(--btn-border) solid #00ff88;
  border-radius: 50%;
  transition: all 0.18s ease;
  box-shadow: 0 0 8px #ff006e;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.move-btn:hover {
  background: linear-gradient(135deg, #ffbe0b, #ff006e);
  box-shadow: 0 0 12px #ffbe0b, 0 0 20px #ff006e;
  transform: scale(1.06);
}

.move-btn:active {
  transform: none !important;
}

.result-display {
  font-size: var(--result-size);
  margin-top: var(--result-margin-top);
  font-weight: bold;
  text-shadow: 0 0 10px #00ff88;
  color: #ffbe0b;
}

.game-score {
  font-size: var(--score-size);
  margin-top: var(--score-margin-top);
  color: #00d9ff;
  text-shadow: 0 0 10px #00d9ff;
}

.choice {
  font-size: var(--choice-size);
  margin: var(--choice-margin) 0;
  color: #00d9ff;
}

.reset-btn {
  padding: var(--reset-padding);
  border: var(--reset-border) solid #ff006e;
  background: linear-gradient(135deg, #ff006e, #8338ec);
  color: white;
  font-size: var(--reset-font-size);
  font-weight: bold;
  cursor: pointer;
  border-radius: var(--reset-radius);
  margin-top: var(--reset-margin-top);
  transition: all 0.18s;
  box-shadow: 0 0 5px #ff006e;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.reset-btn:hover {
  box-shadow: 0 0 12px #ff006e, 0 0 25px #8338ec;
  transform: translateY(-2px);
}

.choice img {
  vertical-align: middle;
  margin: 0 5px;
}

/* Ensure images inside move buttons scale nicely */
.move-btn img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  pointer-events: none;
}

/* Small phone override: make UI larger on narrow viewports */
@media (max-width: 480px) {
  :root {
    --btn-size: 88px;
    --btn-font: 1.3rem;
    --heading-size: 1.9rem;
    --result-size: 1.2rem;
    --score-size: 1.1rem;
    --choice-size: 1.05rem;
    --reset-padding: 12px 20px;
    --btn-border: 2.5px;
    --reset-border: 1.5px;
    --reset-font-size: 1rem;
    --reset-radius: 16px;
    --h4-margin: 18px;
    --move-margin: 10px;
    --result-margin-top: 14px;
    --score-margin-top: 12px;
    --choice-margin: 12px;
    --reset-margin-top: 14px;
  }
}
