*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #0f1419;
  --bg-card: #1a2332;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #334155;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Auth widget */
.auth-widget {
  position: relative;
  flex-shrink: 0;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.auth-button:hover,
.auth-button[aria-expanded="true"] {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.08);
}

.auth-icon {
  width: 1.65rem;
  height: 1.65rem;
  color: var(--text-muted);
}

.auth-avatar {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.auth-label {
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 11rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.35rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.auth-menu-item {
  display: block;
  padding: 0.65rem 0.85rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.auth-menu-item:hover {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
}

.auth-toast {
  position: fixed;
  top: 5.5rem;
  right: 1.5rem;
  z-index: 110;
  max-width: 20rem;
  padding: 0.85rem 1rem;
  background: #7f1d1d;
  color: #fecaca;
  border: 1px solid #b91c1c;
  border-radius: 10px;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.hero-content {
  flex: 1;
}

.badge {
  display: inline-block;
  background: var(--bg-card);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--accent);
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 28rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

/* Hero visual */
.hero-visual {
  flex: 0 0 280px;
  position: relative;
  height: 280px;
}

.ore-block {
  position: absolute;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.ore-1 {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #78350f, #b45309);
  top: 20px;
  left: 80px;
  animation: float 4s ease-in-out infinite;
}

.ore-2 {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #1e3a5f, #3b82f6);
  top: 100px;
  left: 20px;
  animation: float 4s ease-in-out infinite 0.5s;
}

.ore-3 {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #065f46, #10b981);
  top: 60px;
  right: 20px;
  animation: float 4s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.about p {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Play section */
.play {
  text-align: center;
  background: var(--bg-card);
  border-radius: 20px;
  margin: 2rem 1.5rem 4rem;
  max-width: calc(1100px - 3rem);
  border: 1px solid var(--border);
}

.play p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.play-note {
  font-size: 0.85rem;
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
  opacity: 0.7;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer p + p {
  margin-top: 0.5rem;
}

/* Legal pages */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem 3rem;
}

.legal-content h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 0 0 1rem 1.25rem;
}

.legal-content a {
  color: var(--accent);
}

/* Mobile */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1.25rem;
    font-size: 0.9rem;
    margin-left: 0;
  }

  .auth-label {
    display: none;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 5rem;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    flex: none;
    width: 200px;
    height: 200px;
  }

  .ore-1 { width: 90px; height: 90px; left: 55px; }
  .ore-2 { width: 70px; height: 70px; }
  .ore-3 { width: 55px; height: 55px; }
}
