.rng-tool {
  --rng-bg: #0b0a0d;
  --rng-bg-raised: #17141b;
  --rng-bg-card: #1d181f;
  --rng-gold: #f2c14e;
  --rng-gold-dim: #a8863a;
  --rng-hot: #ff3864;
  --rng-text: #f6f1e9;
  --rng-muted: #948f97;
  --rng-line: rgba(242, 193, 78, 0.18);

  all: initial;

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  display: block;
  font-family: 'Space Grotesk',
  'Segoe UI',
  Arial,
  sans-serif;
  background: var(--rng-bg);
  color: var(--rng-text);
  border-radius: 20px;
  padding: 40px 24px 48px;
  max-width: 640px;
  margin: 32px auto;
  position: relative;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.rng-tool::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'../../../../></filter><rect/index.html width='100%25' height='100%25' filter='url(%23n)'../../../../></svg>/index.html");
}

.rng-tool * {
  box-sizing: border-box;
}

.rng-tool .rng-inner {
  position: relative;
  z-index: 1;
}

.rng-tool .rng-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}

.rng-tool .rng-eyebrow span {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rng-muted);
  font-weight: 600;
}

.rng-tool .rng-eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.rng-tool .rng-eq i {
  width: 3px;
  background: var(--rng-gold);
  border-radius: 1px;
  animation: rng-bounce 1.1s ease-in-out infinite;
  display: block;
}

.rng-tool .rng-eq i:nth-child(1) {
  height: 6px;
  animation-delay: 0s;
}

.rng-tool .rng-eq i:nth-child(2) {
  height: 14px;
  animation-delay: 0.15s;
}

.rng-tool .rng-eq i:nth-child(3) {
  height: 9px;
  animation-delay: 0.3s;
}

.rng-tool .rng-eq i:nth-child(4) {
  height: 12px;
  animation-delay: 0.45s;
}

@keyframes rng-bounce {

  0%,
  100% {
    transform: scaleY(0.4);
  }

  50% {
    transform: scaleY(1);
  }
}

.rng-tool h2.rng-title {
  font-family: 'Anton', Impact, Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 7vw, 44px);
  line-height: 0.95;
  text-align: center;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  background: linear-gradient(180deg, #fff 0%, var(--rng-gold) 65%, var(--rng-gold-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rng-tool .rng-sub {
  text-align: center;
  color: var(--rng-muted);
  font-size: 15px;
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.rng-tool .rng-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rng-gold-dim);
  font-weight: 700;
  margin: 0 0 12px 4px;
}

.rng-tool .rng-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.rng-tool .rng-pill {
  appearance: none;
  border: 1px solid var(--rng-line);
  background: var(--rng-bg-raised);
  color: var(--rng-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rng-tool .rng-pill:hover {
  border-color: var(--rng-gold-dim);
  color: var(--rng-text);
}

.rng-tool .rng-pill:focus-visible {
  outline: 2px solid var(--rng-gold);
  outline-offset: 2px;
}

.rng-tool .rng-pill.active {
  background: var(--rng-gold);
  border-color: var(--rng-gold);
  color: #1a1508;
}

.rng-tool .rng-input-row {
  margin-bottom: 28px;
}

.rng-tool .rng-input-row input {
  width: 100%;
  background: var(--rng-bg-raised);
  border: 1px solid var(--rng-line);
  color: var(--rng-text);
  font-family: inherit;
  font-size: 16px;
  padding: 15px 16px;
  border-radius: 12px;
  transition: border-color 0.15s ease;
}

.rng-tool .rng-input-row input::placeholder {
  color: #64606a;
}

.rng-tool .rng-input-row input:focus {
  outline: none;
  border-color: var(--rng-gold);
}

.rng-tool .rng-input-row input:focus-visible {
  outline: 2px solid var(--rng-gold);
  outline-offset: 2px;
}

.rng-tool .rng-generate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 17px 24px;
  font-family: 'Anton', Impact, Arial, sans-serif;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1508;
  background: linear-gradient(180deg, #ffd873, var(--rng-gold) 55%, var(--rng-gold-dim));
  cursor: pointer;
  box-shadow: 0 8px 0 #7a5f28, 0 14px 24px rgba(0, 0, 0, 0.45);
  transform: translateY(0);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.rng-tool .rng-generate-btn:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 #7a5f28, 0 6px 14px rgba(0, 0, 0, 0.4);
}

.rng-tool .rng-generate-btn:focus-visible {
  outline: 2px solid var(--rng-hot);
  outline-offset: 3px;
}

.rng-tool .rng-results {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rng-tool .rng-empty {
  margin-top: 36px;
  text-align: center;
  color: var(--rng-muted);
  font-size: 14px;
  padding: 28px 16px;
  border: 1px dashed var(--rng-line);
  border-radius: 14px;
}

.rng-tool .rng-card {
  position: relative;
  background: var(--rng-bg-card);
  border: 1px solid var(--rng-line);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: rng-rise 0.35s ease both;
}

.rng-tool .rng-card:nth-child(1) {
  animation-delay: 0.02s;
}

.rng-tool .rng-card:nth-child(2) {
  animation-delay: 0.1s;
}

.rng-tool .rng-card:nth-child(3) {
  animation-delay: 0.18s;
}

@keyframes rng-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rng-tool .rng-card-name {
  font-family: 'Anton', Impact, Arial, sans-serif;
  font-size: clamp(18px, 4.6vw, 24px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--rng-text);
  line-height: 1.1;
}

.rng-tool .rng-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rng-gold);
  border: 1px solid var(--rng-gold-dim);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.rng-tool .rng-copy-btn {
  flex-shrink: 0;
  border: 1px solid var(--rng-line);
  background: transparent;
  color: var(--rng-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.rng-tool .rng-copy-btn:hover {
  border-color: var(--rng-gold);
  color: var(--rng-gold);
}

.rng-tool .rng-copy-btn:focus-visible {
  outline: 2px solid var(--rng-gold);
  outline-offset: 2px;
}

.rng-tool .rng-copy-btn.copied {
  border-color: var(--rng-hot);
  color: var(--rng-hot);
}

.rng-tool .rng-footer {
  text-align: center;
  margin-top: 30px;
  color: #7a7580;
  font-size: 12px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .rng-tool .rng-eq i {
    animation: none;
  }

  .rng-tool .rng-card {
    animation: none;
  }

  .rng-tool .rng-generate-btn {
    transition: none;
  }
}