:root {
  --bg: #0b0f19;
  --panel: rgba(22, 28, 45, 0.88);
  --panel-border: rgba(255,255,255,0.08);
  --text: #eef2ff;
  --muted: #b8c0d9;
  --soft: #95a2c6;
  --accent: #7c3aed;
  --accent-2: #c026d3;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1b1f35 0%, var(--bg) 45%, #060912 100%);
  color: var(--text);
}

body {
  position: relative;
  padding: 20px 14px;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 40px);
  display: grid;
  place-items: center;
}

.card {
  width: min(860px, 100%);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 22px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 8px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.25);
  border: 1px solid rgba(255,255,255,0.15);
  flex: 0 0 auto;
  background: rgba(255,255,255,0.06);
  animation: glowPulse 3s infinite ease-in-out;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.steam-badge {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #0b0f19;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 14px 30px rgba(168, 85, 247, 0.28);
  overflow: hidden;
  padding: 8px;
  position: relative;
  z-index: 1;
}

.steam-badge::before {
  content: '';
  position: absolute;
  inset: -150%;
  background: conic-gradient(
    from 0deg,
    transparent 0 340deg,
    var(--accent) 340deg 360deg
  );
  animation: borderBeam 3s linear infinite;
  z-index: -1;
}

.steam-badge-mark {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #161c2d;
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
}

.section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.section:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

h2 {
  margin: 0;
  font-size: 1.5rem;
}

.manual-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  text-decoration: none;
  transition: 0.2s ease;
}

.manual-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
}

ul {
  margin: 0;
  padding-left: 22px;
}

li {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.55;
}

li strong {
  color: var(--text);
}

.code-box {
  margin: 10px 0 8px;
  background: linear-gradient(180deg, rgba(124,58,237,0.15), rgba(96,165,250,0.08));
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(124, 58, 237, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.code-box:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: inset 0 0 20px rgba(124, 58, 237, 0.15), 0 5px 15px rgba(0, 0, 0, 0.2);
}

.code-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.code-label {
  font-size: 0.92rem;
  color: var(--soft);
}

.copy-btn,
.download-btn {
  border: 0;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 10px 20px rgba(124,58,237,0.28);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover,
.download-btn:hover {
  transform: translateY(-1px);
}

.copy-btn.copied {
  background: linear-gradient(135deg, #059669, #10b981);
}

pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  color: #dbeafe;
  font-size: 0.94rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

code.inline {
  background: rgba(255,255,255,0.08);
  padding: 3px 8px;
  border-radius: 9px;
  color: #e9d5ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
}

.note {
  color: var(--soft);
  margin-top: 6px;
  line-height: 1.5;
}

.link-list a,
.soft-link {
  color: #93c5fd;
  text-decoration: none;
}

.link-list a:hover,
.soft-link:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  body {
    padding: 14px 10px;
  }

  .wrap {
    min-height: auto;
  }

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

  .hero {
    flex-direction: row;
    align-items: center;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .steam-badge {
    width: 64px;
    height: 64px;
  }

  .section-title {
    flex-direction: row;
    align-items: center;
  }
}
