* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
}

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px;
  overflow: hidden; z-index: 9999;
}
.skip-link:focus { position: static; width: auto; height: auto; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }
.section-title { font-size: 1.75rem; margin-bottom: 0.5rem; color: #0f172a; }
.section-desc { color: #4b5563; margin-bottom: 2rem; max-width: 60ch; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 0.5rem; border: none;
  font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform 0.1s ease, opacity 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: #ef4444; color: #fff; }
.btn-primary:hover { opacity: 0.95; }
.btn-outline { background: transparent; color: #ef4444; border: 2px solid #ef4444; margin-left: 0.75rem; }
.btn-outline:hover { background: #fee2e2; }
.btn-large { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-large .spin-icon { width: 1.25rem; height: 1.25rem; }

.site-header { position: sticky; top: 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid #e5e7eb; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 700; font-size: 1.25rem; color: #111827; }
.logo svg { width: 1.5rem; height: 1.5rem; }
.nav-links { display: flex; }
.nav-links ul { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: #374151; font-weight: 500; }
.nav-links a:hover { color: #ef4444; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger { display: block; width: 1.5rem; height: 2px; background: #111827; position: relative; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: #111827; transition: transform 0.2s; }
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.hero { padding: 4rem 0 3rem; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.2; }
.hero .emoji { font-size: 3rem; }
.hero-desc { font-size: 1.125rem; margin-bottom: 1.5rem; opacity: 0.95; color: inherit; }
.placeholder-slot { aspect-ratio: 16/9; background: rgba(255,255,255,0.06); border: 2px dashed rgba(255,255,255,0.2); border-radius: 1rem; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); font-size: 0.875rem; }

.game-section { padding: 3rem 0; }
.game-meta { text-align: center; color: #475569; font-size: 0.9375rem; margin-top: 0.5rem; }
.game-meta strong { color: #0f172a; font-variant-numeric: tabular-nums; }
.slot-machine { display: flex; gap: 1rem; justify-content: center; align-items: center; margin: 2rem 0; }

.hero-slot-preview { display: flex; gap: 1rem; justify-content: center; padding: 2rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 1rem; box-shadow: 0 20px 45px -20px rgba(0,0,0,0.6); }
.preview-reel { width: 84px; height: 128px; display: flex; align-items: center; justify-content: center; font-size: 2.75rem; background: #0f172a; border: 3px solid #fbbf24; border-radius: 0.75rem; }

.about-visual { display: grid; gap: 1rem; }
.stat-card { display: flex; align-items: baseline; gap: 0.75rem; padding: 1.25rem 1.5rem; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 0.75rem; }
.stat-num { font-size: 2rem; font-weight: 700; color: #ef4444; line-height: 1; }
.stat-label { color: #475569; }
.reel {
  width: 90px; height: 140px; background: #fff; border: 4px solid #e5e7eb; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); user-select: none;
}
.reel.spinning { animation: spin 0.6s ease-in-out infinite; }
@keyframes spin { 0% { transform: rotateX(0); } 100% { transform: rotateX(360deg); } }
.game-controls { text-align: center; margin-bottom: 1.5rem; }
.result-msg { min-height: 1.5rem; color: #ef4444; font-weight: 600; text-align: center; margin-bottom: 1rem; }

.game-rules { margin-top: 2rem; padding: 1rem; border: 1px dashed #e5e7eb; border-radius: 0.5rem; background: #f9fafb; }
.game-rules summary { cursor: pointer; font-weight: 600; list-style: none; }
.game-rules summary::marker { display: none; }
.game-rules ul { margin-left: 1.5rem; margin-top: 0.5rem; }

.features-section { padding: 3rem 0; background: #f8fafc; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.feature-card { background: #fff; padding: 1.5rem; border-radius: 0.75rem; border: 1px solid #e5e7eb; }
.feature-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; color: #0f172a; }
.feature-card p { font-size: 0.9375rem; color: #4b5563; }

.about-section { padding: 3rem 0; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p { margin-bottom: 1rem; color: #4b5563; max-width: 60ch; }

.faq-section { padding: 3rem 0; background: #f8fafc; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 700px; margin: 0 auto; }
.faq-item { border: 1px solid #e5e7eb; border-radius: 0.5rem; overflow: hidden; }
.faq-item summary { padding: 1rem; font-weight: 600; cursor: pointer; list-style: none; background: #f9fafb; }
.faq-item summary::marker { display: none; }
.faq-item p { padding: 0 1rem 1rem; color: #4b5563; font-size: 0.9375rem; }

.sidebar { padding: 2rem 0; background: #f1f5f9; }
.sidebar h3 { margin-bottom: 0.75rem; font-size: 1rem; color: #334155; }
.sidebar ul { list-style: none; display: flex; gap: 1rem; flex-wrap: wrap; }
.sidebar a { text-decoration: none; color: #475569; font-size: 0.875rem; }

.site-footer { padding: 2rem 0; border-top: 1px solid #e5e7eb; text-align: center; color: #6b7280; font-size: 0.875rem; }
.site-footer a { color: #4b5563; text-decoration: underline; }

@media (max-width: 768px) {
  .hero-inner, .about-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem; border-bottom: 1px solid #e5e7eb; display: none; }
  .nav-links.open { display: flex; }
  .nav-links ul { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .nav-toggle { display: block; }
  .btn-outline { margin-left: 0; margin-top: 0.75rem; }
  .reel { width: 70px; height: 100px; font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reel.spinning { animation: none; }
  html { scroll-behavior: auto; }
}