﻿/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #16a34a;
  --primary-light: #4ade80;
  --primary-dark: #15803d;
  --primary-bg: #f0fdf4;
  --bg: #ffffff;
  --bg-gray: #f8faf9;
  --bg-card: #ffffff;
  --text: #1a2e1a;
  --text-light: #4b6b4b;
  --text-muted: #8ba88b;
  --border: #d4e8d4;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
  --radius: 14px;
  --radius-sm: 10px;
  --max-width: 1200px;
  --header-height: 68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-gray);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.lucy-container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.lucy-site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  box-shadow: 0 1px 4px rgba(22,163,74,0.06);
}

.lucy-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.lucy-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.lucy-logo:hover { color: var(--primary); }
.lucy-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.lucy-logo-text { color: var(--text); font-weight: 700; }
.lucy-logo-text span { color: var(--primary); }

.lucy-main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lucy-main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.lucy-main-nav a:hover, .lucy-main-nav a.lucy-active {
  background: var(--primary);
  color: #fff;
}

.lucy-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.lucy-nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.lucy-hero {
  text-align: center;
  padding: 60px 20px 40px;
}
.lucy-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.lucy-hero h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 16px auto 0;
}
.lucy-hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Featured Game Banner ===== */
.lucy-featured {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}
.lucy-featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.lucy-featured-img {
  width: 100%;
  aspect-ratio: 21/8;
  object-fit: cover;
  display: block;
}
.lucy-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 28px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
}
.lucy-featured-overlay h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.lucy-featured-overlay p {
  font-size: 0.95rem;
  opacity: 0.9;
  max-width: 600px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lucy-featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .lucy-featured-img { aspect-ratio: 16/7; }
  .lucy-featured-overlay { padding: 16px 18px; }
  .lucy-featured-overlay h3 { font-size: 1.1rem; }
  .lucy-featured-overlay p { font-size: 0.8rem; }
}
@media (max-width: 480px) {
  .lucy-featured-img { aspect-ratio: 16/8; }
  .lucy-featured-overlay h3 { font-size: 0.95rem; }
  .lucy-featured-overlay p { display: none; }
}

/* ===== Sections ===== */
.lucy-section { margin-bottom: 48px; }

.lucy-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.lucy-section-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.lucy-view-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.lucy-view-all:hover { color: var(--primary-dark); }

.lucy-section-desc {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 1rem;
}

/* ===== Game Grid ===== */
.lucy-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* ===== Game Card ===== */
.lucy-game-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text);
  border: 1px solid var(--border);
}
.lucy-game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  border-color: var(--primary-light);
}

.lucy-game-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f0f0f0;
}
.lucy-game-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.lucy-game-card:hover .lucy-game-card-img img { transform: scale(1.05); }

.lucy-game-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lucy-game-card-info {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.lucy-game-card-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lucy-game-card-info p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lucy-game-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.lucy-game-rating {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
}
.lucy-game-category {
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ===== Game Detail ===== */
.lucy-game-detail { margin-bottom: 48px; }

.lucy-game-detail-header {
  margin-bottom: 24px;
}
.lucy-game-detail-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.lucy-game-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Detail page top section */
.lucy-game-detail-top {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 32px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.lucy-game-detail-cover {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f0f0f0;
}
.lucy-game-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/10;
}
.lucy-game-detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lucy-game-detail-info h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.lucy-game-detail-desc {
  color: var(--text-light);
  line-height: 1.7;
  margin: 16px 0 20px;
  font-size: 0.95rem;
}
.lucy-game-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.lucy-play-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 50px;
  transition: all 0.3s;
  text-align: center;
  width: fit-content;
  box-shadow: 0 4px 16px rgba(22,163,74,0.3);
}
.lucy-play-now-btn:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(22,163,74,0.4);
}
.lucy-game-detail-tags {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.lucy-game-detail-tags span {
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* Play page */
.lucy-play-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.lucy-play-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
}
.lucy-back-to-detail {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  transition: all 0.2s;
}
.lucy-back-to-detail:hover {
  background: var(--primary);
  color: #fff;
}

.lucy-game-frame-wrapper {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}
.lucy-game-frame-wrapper iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}
.lucy-fullscreen-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
  z-index: 10;
}
.lucy-fullscreen-btn:hover { background: var(--primary); }

.lucy-game-detail-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.lucy-game-detail-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.lucy-game-detail-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text);
}
.lucy-game-detail-content p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}
.lucy-game-detail-content ul {
  padding-left: 24px;
  margin-bottom: 12px;
}
.lucy-game-detail-content li {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 6px;
}

/* ===== Breadcrumb ===== */
.lucy-breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.lucy-breadcrumb a { color: var(--text-light); }
.lucy-breadcrumb a:hover { color: var(--primary); }
.lucy-breadcrumb span { margin: 0 6px; }

/* ===== Page Content (Privacy, About, Contact) ===== */
.lucy-page-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 48px;
  border: 1px solid var(--border);
}
.lucy-page-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.lucy-page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
}
.lucy-page-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text);
}
.lucy-page-content p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}
.lucy-page-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
.lucy-page-content li {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 6px;
}
.lucy-last-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

/* ===== Contact Cards ===== */
.lucy-contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.lucy-contact-card {
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  padding: 24px;
  border: 1px solid var(--border);
}
.lucy-contact-card h3 { margin-top: 0; }
.lucy-contact-email {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 1rem;
}

/* ===== FAQ ===== */
.lucy-faq { margin-top: 16px; }
.lucy-faq-item {
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.lucy-faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.lucy-faq-item p {
  margin: 0;
  font-size: 0.9rem;
}

/* ===== SEO Content ===== */
.lucy-seo-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.lucy-seo-content h2 {
  margin-top: 0;
}

/* ===== Footer ===== */
.lucy-site-footer {
  background: #1a2e1a;
  color: #b8d8b8;
  padding: 48px 0 0;
  margin-top: 60px;
}
.lucy-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.lucy-footer-col h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.lucy-footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.lucy-footer-col p {
  font-size: 0.85rem;
  line-height: 1.7;
}
.lucy-footer-col ul { list-style: none; }
.lucy-footer-col li { margin-bottom: 8px; }
.lucy-footer-col a { color: #b8d8b8; font-size: 0.85rem; }
.lucy-footer-col a:hover { color: var(--primary-light); }

.lucy-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
}

/* ===== 404 Page ===== */
.lucy-page-404 {
  text-align: center;
  padding: 80px 20px;
  max-width: 560px;
  margin: 0 auto;
}
.lucy-404-number {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 4px 4px 0 rgba(22,163,74,0.12);
}
.lucy-page-404 h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.lucy-404-subtitle {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 8px;
}
.lucy-page-404 p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}
.lucy-404-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.lucy-404-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s;
  text-decoration: none;
}
.lucy-404-btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(22,163,74,0.3);
}
.lucy-404-btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22,163,74,0.4);
}
.lucy-404-btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.lucy-404-btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.lucy-404-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.lucy-404-hint a {
  color: var(--primary);
  font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .lucy-main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .lucy-main-nav.lucy-open { display: flex; }
  .lucy-nav-toggle { display: flex; }

  .lucy-hero h1 { font-size: 1.6rem; }
  .lucy-hero p { font-size: 0.95rem; }

  .lucy-game-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

  .lucy-footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .lucy-game-frame-wrapper iframe { height: 400px; }

  .lucy-page-content { padding: 24px; }
  .lucy-game-detail-content { padding: 20px; }

  .lucy-404-number { font-size: 5rem; }
  .lucy-page-404 { padding: 40px 20px; }
  .lucy-page-404 h1 { font-size: 1.5rem; }

  .lucy-game-detail-top {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .lucy-game-detail-cover img {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 480px) {
  .lucy-game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lucy-game-card-info { padding: 10px; }
  .lucy-game-card-info h3 { font-size: 0.85rem; }
  .lucy-game-card-info p { display: none; }
  .lucy-game-frame-wrapper iframe { height: 300px; }
}
