.gm-gif {
  --gm-bg: #11342d;
  --gm-bg-2: #0b241f;
  --gm-card: #fffaf0;
  --gm-card-2: #fffdf8;
  --gm-text: #17332d;
  --gm-muted: #5f6f69;
  --gm-gold: #d7a64a;
  --gm-gold-2: #f3d58a;
  --gm-border: rgba(215, 166, 74, 0.28);
  margin: 34px auto;
  color: var(--gm-text);
  font-family: inherit;
}

.gm-gif * { box-sizing: border-box; }

.gm-gif__shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(243, 213, 138, 0.22), transparent 30%),
    linear-gradient(135deg, var(--gm-bg), var(--gm-bg-2));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  position: relative;
}

.gm-gif__shell::after {
  content: "";
  position: absolute;
  inset: auto -120px -140px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(215, 166, 74, 0.12);
  pointer-events: none;
}

.gm-gif__intro {
  max-width: 760px;
  color: #fffdf8;
  position: relative;
  z-index: 1;
}

.gm-gif__eyebrow,
.gm-gif-result-head__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: var(--gm-gold-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-bottom: 10px;
}

.gm-gif__intro h2 {
  margin: 0 0 12px;
  color: #fffdf8;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.gm-gif__intro p {
  margin: 0 0 26px;
  color: rgba(255, 253, 248, 0.82);
  font-size: 1.06rem;
  line-height: 1.75;
}

.gm-gif__form,
.gm-gif__results {
  position: relative;
  z-index: 1;
  background: rgba(255, 250, 240, 0.98);
  border: 1px solid var(--gm-border);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 28px);
}

.gm-gif__label,
.gm-gif__grid label {
  display: block;
  color: var(--gm-text);
  font-weight: 800;
  margin-bottom: 8px;
}

.gm-gif textarea,
.gm-gif input,
.gm-gif select {
  width: 100%;
  border: 1px solid rgba(23, 51, 45, 0.16);
  background: #fffdf8;
  color: var(--gm-text);
  border-radius: 16px;
  padding: 14px 15px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gm-gif textarea:focus,
.gm-gif input:focus,
.gm-gif select:focus {
  border-color: var(--gm-gold);
  box-shadow: 0 0 0 4px rgba(215, 166, 74, 0.18);
}

.gm-gif textarea {
  resize: vertical;
  min-height: 150px;
}

.gm-gif__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.gm-gif__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 20px;
}

.gm-gif__chips button {
  border: 1px solid rgba(23, 51, 45, 0.14);
  background: rgba(215, 166, 74, 0.10);
  color: var(--gm-text);
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
}

.gm-gif__chips button:hover {
  background: rgba(215, 166, 74, 0.18);
}

.gm-gif__submit {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #d7a64a, #f3d58a);
  color: #172a25;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(102, 72, 13, 0.22);
}

.gm-gif__submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.gm-gif__microcopy {
  margin: 12px 0 0;
  color: var(--gm-muted);
  font-size: 0.92rem;
  text-align: center;
}

.gm-gif__results {
  margin-top: 18px;
}

.gm-gif-result-head {
  margin-bottom: 18px;
}

.gm-gif-result-head h3 {
  color: var(--gm-text);
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.gm-gif-result-head p {
  margin: 0;
  color: var(--gm-muted);
  line-height: 1.7;
}

.gm-gif-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gm-gif-card {
  background: var(--gm-card-2);
  border: 1px solid rgba(23, 51, 45, 0.10);
  border-radius: 22px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.gm-gif-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gm-gold), rgba(215, 166, 74, 0));
}

.gm-gif-card__number {
  display: inline-flex;
  color: var(--gm-gold);
  font-weight: 900;
  margin-bottom: 10px;
}

.gm-gif-card h4,
.gm-gif-card__title {
  color: var(--gm-text) !important;
  font-size: clamp(1.5rem, 2.4vw, 2rem) !important;
  line-height: 1.18 !important;
  margin: 0 0 14px !important;
  font-weight: 900 !important;
  letter-spacing: -0.025em;
  display: block;
}

.gm-gif-card__reason {
  color: var(--gm-muted);
  line-height: 1.68;
  margin: 0 0 14px;
}

.gm-gif-card__meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.gm-gif-card__meta dt {
  color: var(--gm-text);
  font-weight: 900;
  margin: 8px 0 0;
}

.gm-gif-card__meta dd {
  margin: 0;
  color: var(--gm-muted);
  line-height: 1.58;
}

.gm-gif-guides {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 51, 45, 0.10);
}

.gm-gif-guides strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gm-text);
}

.gm-gif-guides ul,
.gm-gif-followups ul {
  margin: 0;
  padding-left: 20px;
}

.gm-gif-guides li,
.gm-gif-followups li {
  margin: 6px 0;
}

.gm-gif-guides a {
  color: #7a5510;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.gm-gif-followups {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(215, 166, 74, 0.10);
  color: var(--gm-text);
}

.gm-gif-followups h4 {
  margin: 0 0 10px;
}

.gm-gif-loading,
.gm-gif-error {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 150px;
  color: var(--gm-muted);
}

.gm-gif-loading span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 4px solid rgba(23, 51, 45, 0.12);
  border-top-color: var(--gm-gold);
  animation: gmGifSpin 0.8s linear infinite;
}

.gm-gif-error {
  border: 1px solid rgba(148, 45, 45, 0.18);
  background: rgba(148, 45, 45, 0.06);
  border-radius: 18px;
  padding: 20px;
}

.gm-gif-error strong {
  display: block;
  color: #763232;
  margin-bottom: 8px;
}

@keyframes gmGifSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
  .gm-gif__grid,
  .gm-gif-cards {
    grid-template-columns: 1fr;
  }

  .gm-gif__shell {
    border-radius: 22px;
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .gm-gif-card h4,
  .gm-gif-card__title {
    font-size: 1.42rem !important;
    line-height: 1.2 !important;
  }
}

