:root {
  --brand-bg: #0d1117;
  --brand-card: rgba(255, 255, 255, 0.04);
  --brand-border: rgba(255, 255, 255, 0.1);
}

body {
  background:
    radial-gradient(80rem 40rem at -10% -10%, rgba(80, 160, 255, 0.18), transparent 55%),
    radial-gradient(70rem 35rem at 110% 0%, rgba(255, 80, 80, 0.18), transparent 55%),
    radial-gradient(60rem 30rem at 50% 120%, rgba(255, 220, 80, 0.14), transparent 55%),
    var(--brand-bg);
}

.hero {
  padding: 2rem 0 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.lead {
  opacity: 0.85;
}

.cards article,
.doc-shell {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  backdrop-filter: blur(8px);
}

.doc-shell {
  border-radius: 1rem;
  padding: 1rem;
}

.doc-header {
  margin-bottom: 1rem;
}

.doc-header h1 {
  margin-bottom: 0.4rem;
}

.doc-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
}

.ring-wrap {
  position: relative;
  width: 4.25rem;
  height: 4.25rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    conic-gradient(
      #d72f38 0deg 90deg,
      #1871b8 90deg 180deg,
      #d4b200 180deg 270deg,
      #259341 270deg 360deg
    );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 8px 22px rgba(0, 0, 0, 0.28);
  animation: ring-spin 16s linear infinite;
}

.ring::after {
  content: "";
  position: absolute;
  inset: 50%;
  translate: -50% -50%;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  background: rgba(7, 10, 14, 0.94);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.ring-ping {
  position: absolute;
  inset: -0.35rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: ring-ping 3.2s ease-out infinite;
}

.ring-ping.delay {
  animation-delay: 1.6s;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
}

.lang-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .lang-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.lang-card {
  border-radius: 0.9rem;
  border: 1px solid var(--brand-border);
  background: rgba(255, 255, 255, 0.025);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.lang-card h2 {
  margin-top: 0;
}

.lang-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.2rem;
  background: linear-gradient(#d72f38, #1871b8, #d4b200, #259341);
  opacity: 0.8;
}

.muted {
  opacity: 0.75;
}

.compact-list li {
  margin-bottom: 0.35rem;
}

.footer-nav {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tiny-easter-egg {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  opacity: 0.72;
}

.tiny-easter-egg code {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.4rem;
  padding: 0.12rem 0.35rem;
}

.support-play-panel {
  margin-top: 0.8rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem;
}

.support-play-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.emoji-cycle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.2rem 0.65rem;
  font-size: 1.1rem;
}

.ghost-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  padding: 0.28rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes ring-ping {
  0% { transform: scale(0.94); opacity: 0.55; }
  70% { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ring,
  .ring-ping {
    animation: none;
  }
}
