[hidden] { display: none !important; }

.ar-app .mg-gamebar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ar-app .mg-back { justify-self: start; color: var(--muted); }
.ar-app .mg-gamebar__center { text-align: center; }
.ar-app .mg-gamebar__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.ar-app .mg-gamebar__status {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.ar-app .mg-gamebar__meta {
  justify-self: end;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

.ar-step {
  display: none;
  animation: ar-in 0.28s ease;
}
.ar-step.is-active {
  display: grid;
  place-items: center;
  min-height: min(60vh, 560px);
}

.ar-card {
  width: min(460px, 100%);
  padding: 1.6rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.ar-card--center { text-align: center; }
.ar-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.ar-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-size: 1.55rem;
}
.ar-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.ar-howto {
  margin: 1.1rem 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.ar-howto li {
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(145, 168, 184, 0.18);
  background: rgba(5, 14, 24, 0.35);
  color: var(--muted);
  font-size: 0.92rem;
}
.ar-howto strong { color: var(--text); }
.ar-best {
  margin: 0 0 1.1rem !important;
  color: var(--brand) !important;
  font-weight: 600;
}
.mg-actions--center { justify-content: center; margin-top: 1.2rem; }

.ar-hud {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin: 0 auto 0.85rem;
}
.ar-hud__item {
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  text-align: center;
}
.ar-hud__item span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.ar-hud__item strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.ar-stage {
  position: relative;
  width: min(960px, 100%);
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  background: #0a1824;
  touch-action: none;
  user-select: none;
}
.ar-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
}

.ar-power {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 3.1rem;
  display: grid;
  gap: 0.35rem;
  pointer-events: none;
}
.ar-power__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(5, 14, 24, 0.65);
  border: 1px solid rgba(240, 163, 94, 0.28);
  overflow: hidden;
}
.ar-power__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5ddea0, #f0a35e 55%, #ff6b6b);
  transition: width 0.05s linear;
}
.ar-power span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
.ar-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  margin: 0;
  text-align: center;
  color: rgba(232, 242, 246, 0.8);
  font-size: 0.88rem;
  font-weight: 500;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
}

.ar-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1.25rem 0 0.25rem;
}
.ar-stats div {
  padding: 0.75rem 0.5rem;
  border-radius: 14px;
  background: rgba(5, 14, 24, 0.4);
  border: 1px solid rgba(145, 168, 184, 0.18);
}
.ar-stats span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.ar-stats strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

@keyframes ar-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .ar-app .mg-gamebar {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ar-app .mg-back,
  .ar-app .mg-gamebar__meta { justify-self: center; }
  .ar-hud {
    grid-template-columns: repeat(2, 1fr);
  }
  .ar-step.is-active { min-height: auto; place-items: stretch; }
  .ar-card { width: 100%; }
  .ar-stats { grid-template-columns: 1fr; }
  .ar-power { bottom: 2.8rem; }
}
