:root {
  --bg: #0b0b0d;
  --panel: rgba(17, 17, 20, 0.84);
  --panel-border: rgba(255, 145, 66, 0.35);
  --text: #f7f2e9;
  --muted: #c8bca9;
  --accent: #ff7d2f;
  --accent-soft: #c63d24;
  --deep-red: #2a080d;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(4, 4, 6, 0.9), rgba(8, 6, 6, 0.95)),
    url("BG.png") center / cover no-repeat fixed;
  line-height: 1.5;
}

.app {
  width: min(900px, 100% - 1.25rem);
  margin: 1rem auto;
  display: grid;
  gap: 1rem;
}

.hero-card,
.result-card {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr;
  align-items: center;
  background:
    linear-gradient(110deg, rgba(42, 8, 13, 0.88), rgba(13, 12, 16, 0.86)),
    url("BG.png") center / cover no-repeat;
  border-color: var(--panel-border);
}

.host-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.85rem;
  filter: drop-shadow(0 0 14px rgba(255, 124, 43, 0.28));
}

.hero-copy {
  padding: 1rem 1.1rem 1.1rem;
}

.eyebrow {
  margin: 0;
  color: #ffce9b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

h1 {
  margin: 0.15rem 0 0.4rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.subtitle {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 150ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn:focus-visible {
  outline: 2px solid #ffd2a0;
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-soft), var(--accent));
  color: #fff7ef;
  box-shadow: 0 0 0 rgba(255, 115, 33, 0.35), 0 0 18px rgba(255, 115, 33, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn:hover,
.btn:active {
  transform: translateY(-1px);
}

.btn-primary:hover,
.btn-primary:active {
  box-shadow: 0 0 0 2px rgba(255, 125, 47, 0.18), 0 0 22px rgba(255, 125, 47, 0.34);
}

.counter {
  margin: 0.7rem 0 0;
  color: #ecd8bd;
  font-size: 0.95rem;
}

.result-card {
  padding: 1rem;
  background:
    linear-gradient(160deg, rgba(13, 13, 17, 0.92), rgba(34, 13, 11, 0.8)),
    url("BG.png") center / cover no-repeat;
}

.result-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.result-header p {
  margin: 0.35rem 0 0.9rem;
  color: var(--muted);
}

.loadout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.slot {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.68rem 0.78rem;
  background: rgba(0, 0, 0, 0.28);
}

.slot h3 {
  margin: 0;
  color: #f8ba81;
  font-size: 0.77rem;
  letter-spacing: 0.08em;
}

.slot p {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.slot-wide {
  grid-column: 1 / -1;
}

.status {
  margin: 0.9rem 0 0;
  color: #f0d8b5;
  font-size: 0.94rem;
}

.result-card.pop {
  animation: cardPop 220ms ease;
}

@keyframes cardPop {
  0% {
    transform: scale(0.985);
    opacity: 0.72;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .host-image {
    max-height: 215px;
  }

  .loadout-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
