.wcg-shell,
.wcg-shell * {
  box-sizing: border-box;
}

.wcg-shell {
  --wcg-bg: #0c1813;
  --wcg-panel: rgba(19, 34, 27, .92);
  --wcg-panel-2: rgba(255, 255, 255, .055);
  --wcg-line: rgba(235, 221, 178, .17);
  --wcg-text: #f4eedb;
  --wcg-muted: #b9c2b7;
  --wcg-gold: #e3bd65;
  --wcg-gold-2: #f6d98d;
  --wcg-green: #9bbb79;
  --wcg-danger: #ffb4ab;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: 980px;
  margin: 36px auto;
  padding: 1px;
  border-radius: 28px;
  color: var(--wcg-text);
  background:
    radial-gradient(circle at 10% 10%, rgba(125, 164, 105, .20), transparent 35%),
    radial-gradient(circle at 90% 20%, rgba(227, 189, 101, .13), transparent 32%),
    linear-gradient(145deg, #10231a, #07110d 72%);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .25);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wcg-shell::before,
.wcg-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.wcg-shell::before {
  width: 260px;
  height: 260px;
  left: -120px;
  bottom: -120px;
  border: 1px solid rgba(227, 189, 101, .12);
  box-shadow: 0 0 0 26px rgba(227, 189, 101, .025), 0 0 0 58px rgba(227, 189, 101, .018);
}

.wcg-shell::after {
  width: 330px;
  height: 330px;
  right: -180px;
  top: -165px;
  background: radial-gradient(circle, rgba(155, 187, 121, .14), transparent 67%);
}

.wcg-card {
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 27px;
  background:
    linear-gradient(rgba(255, 255, 255, .018), rgba(255, 255, 255, 0)),
    var(--wcg-panel);
  backdrop-filter: blur(10px);
}

.wcg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--wcg-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wcg-kicker::before {
  content: "✦";
}

.wcg-card h2 {
  margin: 0;
  color: var(--wcg-text);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 850;
}

.wcg-intro {
  max-width: 690px;
  margin: 16px 0 30px;
  color: var(--wcg-muted);
  font-size: 16px;
  line-height: 1.65;
}

.wcg-form {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--wcg-line);
  border-radius: 20px;
  background: rgba(4, 12, 8, .24);
}

.wcg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.wcg-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wcg-field > span {
  color: #d8dfd4;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .015em;
}

.wcg-field select,
.wcg-field input {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(244, 238, 219, .14);
  border-radius: 12px;
  outline: none;
  color: var(--wcg-text);
  background: rgba(255, 255, 255, .055);
  box-shadow: none;
  font: inherit;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.wcg-field select {
  color-scheme: dark;
}

.wcg-field input::placeholder {
  color: #859087;
}

.wcg-field select:focus,
.wcg-field input:focus {
  border-color: rgba(227, 189, 101, .65);
  background: rgba(255, 255, 255, .075);
  box-shadow: 0 0 0 3px rgba(227, 189, 101, .10);
}

.wcg-wide {
  margin-top: 16px;
}

.wcg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 190px;
  min-height: 50px;
  margin-top: 20px;
  padding: 12px 20px;
  border: 0;
  border-radius: 13px;
  color: #182015;
  background: linear-gradient(135deg, var(--wcg-gold-2), var(--wcg-gold));
  box-shadow: 0 10px 26px rgba(227, 189, 101, .15);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition: transform .16s ease, filter .16s ease, opacity .16s ease;
}

.wcg-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.045);
}

.wcg-button:active {
  transform: translateY(0);
}

.wcg-button:disabled {
  cursor: wait;
  opacity: .68;
}

.wcg-button-icon {
  font-size: 18px;
}

.wcg-status {
  display: inline-block;
  margin-left: 12px;
  color: var(--wcg-muted);
  font-size: 13px;
}

.wcg-status.is-error {
  color: var(--wcg-danger);
}

.wcg-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.wcg-result {
  position: relative;
  min-height: 118px;
  padding: 20px 54px 20px 20px;
  overflow: hidden;
  border: 1px solid var(--wcg-line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  animation: wcg-rise .32s ease both;
}

.wcg-result::before {
  content: "";
  position: absolute;
  width: 5px;
  inset: 16px auto 16px 0;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(var(--wcg-gold), var(--wcg-green));
  opacity: .78;
}

.wcg-result-name {
  margin: 0 0 7px;
  color: var(--wcg-gold-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.wcg-result-meaning {
  margin: 0;
  color: var(--wcg-muted);
  font-size: 14px;
  line-height: 1.5;
}

.wcg-copy {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 10px;
  color: #d9dfd7;
  background: rgba(0, 0, 0, .18);
  cursor: pointer;
  font-size: 15px;
  transition: background .16s ease, border-color .16s ease;
}

.wcg-copy:hover {
  border-color: rgba(227, 189, 101, .35);
  background: rgba(227, 189, 101, .10);
}

.wcg-footer {
  margin-top: 20px;
  color: #89958c;
  font-size: 11px;
  line-height: 1.5;
}

@keyframes wcg-rise {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .wcg-shell {
    margin: 20px auto;
    border-radius: 20px;
  }

  .wcg-card {
    border-radius: 19px;
  }

  .wcg-grid,
  .wcg-results {
    grid-template-columns: 1fr;
  }

  .wcg-status {
    display: block;
    margin: 10px 0 0;
  }

  .wcg-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wcg-result {
    animation: none;
  }

  .wcg-button {
    transition: none;
  }
}
