@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Outfit:wght@600;700;800&display=swap");

.flag-challenge-wordpress {
  --mint-ice: #eef8f0;
  --surface-dark: #051414;
  --surface-mid: #0b2321;
  --surface-soft: rgba(10, 34, 31, 0.82);
  --card-border: rgba(118, 216, 169, 0.18);
  --text-main: #f3fbf6;
  --text-soft: #bfd8ca;
  --accent: #1d9558;
  --accent-strong: #157244;
  --accent-glow: rgba(30, 190, 111, 0.32);
  --danger: #ff8d95;
  --success: #90f0b4;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
}

.flag-challenge-wordpress,
.flag-challenge-wordpress * {
  box-sizing: border-box;
}

.flag-challenge-wordpress {
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background:
    linear-gradient(180deg, var(--mint-ice) 0 9rem, #071514 9rem 100%),
    radial-gradient(circle at 50% 28%, rgba(35, 161, 97, 0.2), transparent 32%);
  border-radius: 34px;
}

.flag-challenge-wordpress img {
  display: block;
  max-width: 100%;
}

.flag-challenge-wordpress button {
  font: inherit;
}

.game-shell {
  min-height: auto;
  display: grid;
  place-items: start center;
  padding: 0;
}

.flag-challenge-wordpress.game-shell {
  width: 100%;
}

.game-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 1160px);
  padding: 44px;
  border: 1px solid var(--card-border);
  border-radius: 34px;
  background:
    radial-gradient(circle at top, rgba(51, 198, 124, 0.14), transparent 24%),
    linear-gradient(160deg, rgba(8, 30, 28, 0.98), rgba(3, 14, 13, 0.98));
  box-shadow: var(--shadow);
}

.orb,
.orbit {
  position: absolute;
  pointer-events: none;
}

.orb {
  border-radius: 999px;
  filter: blur(6px);
}

.orb-one {
  top: -90px;
  right: 120px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(47, 214, 128, 0.22), transparent 68%);
}

.orb-two {
  bottom: 120px;
  left: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(27, 136, 82, 0.26), transparent 70%);
}

.orbit {
  border: 1px solid rgba(77, 180, 132, 0.12);
  border-radius: 999px;
}

.orbit-one {
  top: 38px;
  right: -120px;
  width: 520px;
  height: 520px;
}

.orbit-two {
  bottom: -140px;
  left: 120px;
  width: 420px;
  height: 420px;
}

.game-copy,
.status-bar,
.flag-panel,
.answers-panel,
.footer-bar,
.result-panel {
  position: relative;
  z-index: 1;
}

.game-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #7ee2a8;
  font-size: 0.76rem;
  font-weight: 800;
}

.flag-challenge-wordpress h1 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

.subtitle {
  margin: 16px 0 0;
  max-width: 68ch;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.7;
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}

.status-pill {
  min-width: 148px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(14, 40, 36, 0.84);
  border: 1px solid rgba(118, 216, 169, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.status-label {
  display: block;
  color: #b2cfbe;
  font-size: 0.78rem;
  margin-bottom: 5px;
}

.flag-panel {
  margin-top: 28px;
}

.flag-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(118, 216, 169, 0.18);
  background:
    radial-gradient(circle at 50% 10%, rgba(58, 193, 122, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(9, 29, 27, 0.98), rgba(3, 13, 12, 0.98));
  padding: 24px;
}

.flag-frame::before,
.flag-frame::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 22px;
  pointer-events: none;
}

.flag-frame::before {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.18), transparent 22%, transparent 74%, rgba(255, 255, 255, 0.08));
  opacity: 0.4;
}

.flag-frame::after {
  background:
    radial-gradient(circle at center, transparent 56%, rgba(21, 114, 68, 0.16) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 30px 45px rgba(255, 255, 255, 0.03),
    inset 0 -30px 45px rgba(0, 0, 0, 0.12);
}

.flag-image {
  width: 100%;
  aspect-ratio: 16 / 8.8;
  object-fit: cover;
  border-radius: 22px;
  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform-origin: center;
  animation: flag-sway 5.5s ease-in-out infinite;
}

.feedback {
  margin: 16px 0 0;
  min-height: 1.5em;
  color: var(--text-soft);
  font-size: 1rem;
}

.feedback.success {
  color: var(--success);
}

.feedback.error {
  color: var(--danger);
}

.catalog-note {
  margin: 8px 0 0;
  min-height: 1.25em;
  color: #82dba8;
  font-size: 0.92rem;
}

.answers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.answer-button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 20px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

.answer-button {
  padding: 19px 18px;
  text-align: left;
  color: var(--text-main);
  background: rgba(14, 40, 36, 0.92);
  border: 1px solid rgba(118, 216, 169, 0.08);
  cursor: pointer;
}

.answer-button:hover:not(:disabled),
.primary-button:hover:not(:disabled),
.ghost-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.answer-button:hover:not(:disabled) {
  border-color: rgba(118, 216, 169, 0.32);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.answer-button:disabled {
  cursor: default;
}

.answer-button.correct {
  background: rgba(26, 107, 66, 0.56);
  border-color: rgba(111, 236, 163, 0.65);
  box-shadow: 0 0 0 1px rgba(111, 236, 163, 0.18);
}

.answer-button.wrong {
  background: rgba(116, 30, 39, 0.44);
  border-color: rgba(255, 141, 149, 0.56);
}

.footer-bar {
  margin-top: 24px;
}

.result-panel {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 26px;
  border: 1px solid rgba(118, 216, 169, 0.18);
  background:
    linear-gradient(145deg, rgba(29, 149, 88, 0.16), rgba(21, 114, 68, 0.08)),
    rgba(8, 26, 24, 0.92);
}

.result-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #82dba8;
  font-size: 0.76rem;
  font-weight: 800;
}

.result-title {
  margin: 10px 0 0;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.result-summary,
.result-message {
  margin: 10px 0 0;
  color: var(--text-soft);
}

.primary-button,
.ghost-button {
  padding: 15px 22px;
  font-weight: 800;
}

.primary-button {
  min-width: 170px;
  color: #f7fff9;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 34px var(--accent-glow);
  cursor: pointer;
}

.primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ghost-button {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(118, 216, 169, 0.18);
  cursor: pointer;
}

.flag-challenge-wordpress .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes flag-sway {
  0%,
  100% {
    transform: perspective(1200px) rotateY(-2.8deg) scale(1);
  }

  50% {
    transform: perspective(1200px) rotateY(2.8deg) scale(1.012);
  }
}

@media (max-width: 768px) {
  .game-card {
    padding: 26px 20px;
    border-radius: 28px;
  }

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

  .status-bar {
    align-items: stretch;
  }

  .ghost-button,
  .primary-button {
    width: 100%;
  }

  .orbit-one,
  .orbit-two {
    display: none;
  }

  .flag-frame {
    padding: 16px;
  }

  .flag-frame::before,
  .flag-frame::after {
    inset: 16px;
  }
}
