*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
}

/* Nav */
.nav {
  background: #fff;
  padding: 1rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-link {
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.nav-link:hover {
  background: #f0f0f0;
}

/* Main */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.main-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

/* Games grid */
.games {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* Game card */
.game-card {
  display: block;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.game-card-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.game-card-desc {
  font-size: 0.95rem;
  color: #666;
}

/* Ad slots */
.ad-slot {
  width: 100%;
  max-width: 400px;
  min-height: 50px;
  text-align: center;
}

.ad-slot--bottom {
  margin-top: 2rem;
  max-width: 728px;
  margin-left: auto;
  margin-right: auto;
}

/* AdFit (Kakao) slots */
.adfit-slot {
  text-align: center;
  margin: 2rem auto;
  max-width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

.adfit-slot ins {
  margin: 0 auto;
  max-width: 100% !important;
}

.adfit-mobile {
  display: block;
}

.adfit-desktop {
  display: none !important;
}

@media (min-width: 768px) {
  .adfit-mobile {
    display: none !important;
  }

  .adfit-desktop {
    display: block !important;
  }

  .adfit-slot {
    max-width: 728px;
    padding: 0;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .main-title {
    font-size: 1.75rem;
  }

  .games {
    flex-direction: column;
    align-items: center;
  }

  .game-card {
    max-width: 400px;
  }

  .ad-slot--between {
    max-width: 400px;
  }
}


/* Footer */
.footer {
  background: #fafafa;
  border-top: 1px solid #eee;
  text-align: center;
  padding: 2rem 1rem;
  color: #777;
  font-size: 0.85rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-brand {
  font-weight: 600;
  color: #555;
  margin-bottom: 0.5rem;
}

.footer-links {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.footer-copy {
  color: #999;
  font-size: 0.8rem;
}

.footer-link {
  color: #7c3aed;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Article meta line */
.content-meta {
  color: #999;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.content-author {
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

/* Tables inside articles */
.content-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 0.75rem 0;
}

.content-section th,
.content-section td {
  border: 1px solid #eee;
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.content-section th {
  background: #f5f5f5;
  font-weight: 600;
  color: #444;
}

.content-section blockquote {
  border-left: 3px solid #7c3aed;
  background: #faf5ff;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.7;
}

.content-section code {
  background: #f3f4f6;
  border-radius: 4px;
  padding: 0.1em 0.35em;
  font-size: 0.85em;
  color: #6d28d9;
}

.callout {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.6;
}

/* Consent Banner */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

.consent-inner {
  max-width: 800px;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.consent-text {
  font-size: 0.85rem;
  flex: 1;
  min-width: 200px;
}

.consent-buttons {
  display: flex;
  gap: 0.5rem;
}

.consent-btn {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.consent-btn--accept {
  background: #4CAF50;
  color: #fff;
}

.consent-btn--decline {
  background: #666;
  color: #fff;
}


/* Privacy page */
.privacy-container {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.privacy-back {
  color: #7c3aed;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.privacy-back:hover {
  text-decoration: underline;
}

.privacy-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.privacy-date {
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.privacy-container h2 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.privacy-container p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.privacy-container ul {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.privacy-container li {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

.privacy-container a {
  color: #7c3aed;
}

/* ===========================
   New Page Styles (Guide, Blog, About)
   =========================== */

/* Breadcrumb */
.breadcrumb {
  max-width: 700px;
  margin: 1rem auto 0;
  padding: 0 1rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #999;
}

.breadcrumb-list li::after {
  content: '/';
  margin-left: 0.5rem;
  color: #ccc;
}

.breadcrumb-list li:last-child::after {
  content: '';
}

.breadcrumb-list a {
  color: #7c3aed;
  text-decoration: none;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

/* Content Page (Guide / Blog / About) */
.content-page {
  max-width: 700px;
  margin: 1.5rem auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.content-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.content-section {
  margin-top: 1.5rem;
}

.content-section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.content-section h3 {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  color: #444;
}

.content-section p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.content-section ul,
.content-section ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-section ul li,
.content-section ol li {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0.25rem;
}

/* Play Link (CTA button) */
.play-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: #7c3aed;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s;
}

.play-link:hover {
  background: #6d28d9;
  transform: translateY(-1px);
}

/* Blog List */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.blog-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.blog-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: #333;
}

.blog-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* Site Intro (main page) */
.site-intro {
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

/* Game Card Detail */
.game-card-detail {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* ===========================
   Responsive: Mobile Nav & Layout
   =========================== */

@media (max-width: 767px) {
  .nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  .content-page {
    margin: 1rem 0.5rem 0;
    padding: 1.5rem 1rem;
    border-radius: 8px;
  }

  .content-title {
    font-size: 1.25rem;
  }

  .breadcrumb {
    padding: 0 0.5rem;
  }

  .blog-card {
    padding: 1.25rem 1rem;
  }
}
