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

:root {
  --primary: #6c63ff;
  --primary-light: #a89cff;
  --primary-dark: #4b44c4;
  --accent: #ff6584;
  --bg: #0f0e17;
  --surface: #1a1830;
  --surface-2: #221f3a;
  --text: #fffffe;
  --text-muted: #a7a9be;
  --border: rgba(108, 99, 255, 0.2);
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang TC',
    'Noto Sans TC', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Background animated shapes */
.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}

.shape-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -150px;
  animation: drift-1 8s ease-in-out infinite alternate, hue-1 6s ease-in-out infinite alternate;
}

.shape-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -100px;
  animation: drift-2 10s ease-in-out infinite alternate, hue-2 8s ease-in-out infinite alternate;
}

.shape-3 {
  width: 400px;
  height: 400px;
  top: 40%;
  left: 50%;
  animation: drift-3 7s ease-in-out infinite alternate, hue-3 5s ease-in-out infinite alternate;
}

@keyframes drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(120px, 80px) scale(1.2); }
}
@keyframes drift-2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-100px, -80px) scale(1.15); }
}
@keyframes drift-3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-80px, -100px) scale(1.2); }
}

@keyframes hue-1 {
  0%   { background: #6c63ff; }
  25%  { background: #43b8ff; }
  50%  { background: #a855f7; }
  75%  { background: #ec4899; }
  100% { background: #6c63ff; }
}
@keyframes hue-2 {
  0%   { background: #ff6584; }
  25%  { background: #ff9a3c; }
  50%  { background: #f43f5e; }
  75%  { background: #fb923c; }
  100% { background: #ff6584; }
}
@keyframes hue-3 {
  0%   { background: #22d3ee; }
  25%  { background: #6c63ff; }
  50%  { background: #34d399; }
  75%  { background: #43b8ff; }
  100% { background: #22d3ee; }
}

/* Main container */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 48px;
  max-width: 540px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 32px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}

/* Gear icon */
.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.gear {
  width: 80px;
  height: 80px;
  color: var(--primary);
  animation: spin 10s linear infinite;
  filter: drop-shadow(0 0 16px rgba(108, 99, 255, 0.5));
}

.gear svg {
  fill: currentColor;
  width: 100%;
  height: 100%;
}

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

/* Badge */
.badge {
  display: inline-block;
  background: rgba(108, 99, 255, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(108, 99, 255, 0.35);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 16px;
  margin-bottom: 20px;
}

/* Heading */
h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 30%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-bottom: 28px;
}

/* Info row */
.info-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.info-item:hover {
  border-color: var(--primary);
  color: var(--text);
}

.info-icon {
  font-size: 1rem;
}

/* Social links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.social-btn:hover {
  transform: translateY(-3px);
  color: #fff;
}

.social-btn.line:hover      { background: #06c755; border-color: #06c755; box-shadow: 0 4px 16px rgba(6,199,85,0.35); }
.social-btn.instagram:hover { background: #e1306c; border-color: #e1306c; box-shadow: 0 4px 16px rgba(225,48,108,0.35); }
.social-btn.discord:hover   { background: #5865f2; border-color: #5865f2; box-shadow: 0 4px 16px rgba(88,101,242,0.35); }
.social-btn.youtube:hover   { background: #ff0000; border-color: #ff0000; box-shadow: 0 4px 16px rgba(255,0,0,0.35); }
.social-btn.facebook:hover  { background: #1877f2; border-color: #1877f2; box-shadow: 0 4px 16px rgba(24,119,242,0.35); }
.social-btn.x:hover         { background: #000;    border-color: #555;    box-shadow: 0 4px 16px rgba(255,255,255,0.1); }

/* Mobile */
@media (max-width: 480px) {
  .card {
    padding: 40px 24px;
    border-radius: 20px;
  }

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

  .info-item {
    width: 100%;
    justify-content: center;
  }
}
