/* Andy hacker game 1.2 (no ladder, prize pill, character PNG) */
.am-wrap {
  --am-primary: #39FF14;
  --am-card: #14161b;
  --am-text: #e7f7ed;
  background: radial-gradient(ellipse at top, #0f1322 0%, #07080b 70%);
  color: var(--am-text);
  padding: 16px;
  border-radius: 12px;
  max-width: 900px;
  margin: 16px auto;
  box-shadow: 0 0 24px rgba(57,255,20,.15), inset 0 0 0 1px rgba(255,255,255,.03);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
}

.am-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.am-title {
  margin: 0;
  font-size: clamp(22px, 3.5vw, 32px);
  letter-spacing: .5px;
  text-shadow: 0 0 16px rgba(57,255,20,.45), 0 0 2px rgba(57,255,20,.9);
  color: var(--am-primary);
}

.am-prize{
  background: rgba(57,255,20,.12);
  border: 1px solid rgba(57,255,20,.35);
  color: var(--am-primary);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  min-width: 140px;
  text-align: center;
}

.am-top{
  display: grid;
  grid-template-columns: 1fr;
}

/* Character area */
.am-character{
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border: 1px solid rgba(255,255,255,.08);
  padding: 10px;
  border-radius: 12px;
  position: relative;
}

.am-char-img{
  width: 130px;
  height: 130px;
  object-fit: contain;
  background: transparent !important;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(57,255,20,.35);
  animation: amFloat 3s ease-in-out infinite;
  image-rendering: auto;
}
@keyframes amFloat { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-4px);} }

.am-bubble {
  background: #0a0c10;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 10px;
  min-height: 56px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

/* Game area */
.am-game {
  margin-top: 12px;
  background: var(--am-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 14px;
}

.am-question {
  font-size: clamp(18px, 2.8vw, 22px);
  margin-bottom: 12px;
}

.am-answers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.am-answers button {
  text-align: left;
  background: #0c0f14;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
}
.am-answers button .am-letter {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  margin-right: 8px;
  border: 1px solid rgba(255,255,255,.2);
}
.am-answers button:hover { border-color: var(--am-primary); }
.am-answers button[disabled] { opacity: .7; cursor: not-allowed; }
.am-answers button.am-correct { background: rgba(57,255,20,.15); border-color: var(--am-primary); }
.am-answers button.am-wrong { background: rgba(255,60,60,.15); border-color: rgba(255,60,60,.6); }

.am-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}
.am-controls button {
  background: var(--am-primary);
  color: #071006;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.am-controls button[hidden] { display: none; }

.am-modal[hidden] { display: none; }
.am-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  display: grid; place-items: center;
  z-index: 9999;
}
.am-modal-content {
  background: #0f131a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 16px;
  max-width: 460px;
  width: 92vw;
}
.am-modal-content h3 { margin-top: 0; color: var(--am-primary); }

@media (min-width: 680px) {
  .am-answers { grid-template-columns: 1fr 1fr; }
}
