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

:root {
  --primary-dark: #1a1a2e;
  --primary-accent: #16213e;
  --secondary-purple: #533483;
  --accent-cyan: #0f3460;
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg-white);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-header {
  background: var(--bg-white);
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.brand-symbol {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-purple) 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.navigation-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-purple);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary-purple);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-btn {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-cyan) 100%);
  color: white;
  border: none;
  padding: 0.625rem 1.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  opacity: 0.9;
}

.age-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dark);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 1.25rem;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.375rem;
}

.menu-toggle-bar {
  width: 1.75rem;
  height: 2px;
  background-color: var(--primary-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active .menu-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.menu-toggle.active .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  width: 100%;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  margin-top: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .nav-link,
.mobile-menu .nav-btn {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  text-align: left;
  background: none;
  border-radius: 0;
}

.mobile-menu .nav-link:last-child,
.mobile-menu .nav-btn:last-child {
  border-bottom: none;
}

.license-bar {
  background: linear-gradient(135deg, var(--bg-light) 0%, #edf2f7 100%);
  padding: 1rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.license-bar-text {
  margin: 0;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.main-content {
  padding: 0;
  background-color: var(--bg-white);
}

.banner-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 3rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-cyan) 50%, var(--secondary-purple) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.banner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
}

.banner-text-wrapper {
  position: relative;
  z-index: 1;
}

.banner-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: white;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.banner-description {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}

.banner-image-wrapper {
  position: relative;
  z-index: 1;
}

.banner-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.cta-button {
  background-color: white;
  color: var(--primary-dark);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: inline-block;
  margin-top: 1rem;
  letter-spacing: 0.01em;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  background-color: #f8f9fa;
}

.content-wrapper {
  padding: 5rem 3rem;
  background-color: var(--bg-white);
  max-width: 1600px;
  margin: 0 auto;
}

.section-title {
  color: var(--primary-dark);
  font-size: 2.75rem;
  margin-bottom: 3.5rem;
  text-align: center;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lottery-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 4rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.lottery-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.lottery-card-image-container {
  width: 100%;
  overflow: hidden;
  background: var(--bg-light);
}

.lottery-card-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.lottery-card:hover .lottery-card-image {
  transform: scale(1.03);
}

.lottery-card-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.lottery-card-title {
  color: var(--primary-dark);
  font-size: 2.25rem;
  margin: 0;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lottery-card-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
}

.prizes-container {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 2rem;
  border-radius: 0.875rem;
  border-left: 4px solid var(--secondary-purple);
}

.prizes-title {
  color: var(--primary-dark);
  font-size: 1.375rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.prizes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prizes-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.prizes-list li:last-child {
  border-bottom: none;
}

.pricing-container {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: 0.875rem;
  padding: 2rem;
  margin: 1.5rem 0;
}

.pricing-title {
  color: var(--primary-dark);
  font-size: 1.375rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-cyan) 100%);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.pricing-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.info-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 1rem 0;
}

.info-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.features-grid {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 3.5rem;
  border-radius: 1.25rem;
  margin-top: 3rem;
  border: 1px solid var(--border-color);
}

.features-title {
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 2.5rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
}

.feature-item-title {
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 0.875rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-item-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.gaming-info-box {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 3.5rem;
  border-radius: 1.25rem;
  margin-top: 3rem;
  border: 1px solid var(--border-color);
}

.gaming-info-title {
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gaming-info-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.gaming-section-title {
  color: var(--primary-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.375rem;
  font-weight: 700;
}

.gaming-list {
  font-size: 1rem;
  line-height: 1.8;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.gaming-list li {
  margin-bottom: 0.5rem;
}

.warning-box {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-cyan) 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 0.875rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-md);
}

.warning-box-text {
  margin: 0;
  font-weight: 600;
  font-size: 1.0625rem;
}

.text-section {
  padding: 5rem 3rem;
  background-color: var(--bg-white);
  max-width: 900px;
  margin: 0 auto;
  display: none;
}

.text-section.active {
  display: block;
}

.text-section-title {
  color: var(--primary-dark);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-section-subtitle {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.text-section-text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.text-section-list {
  font-size: 1rem;
  line-height: 1.8;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.text-section-list li {
  margin-bottom: 0.75rem;
}

.text-section-link {
  color: var(--secondary-purple);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.text-section-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.site-footer {
  background-color: var(--bg-white);
  color: var(--text-primary);
  padding: 4rem 3rem 2rem;
  margin-top: 5rem;
  border-top: 1px solid var(--border-color);
}

.footer-upper {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.footer-upper-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.footer-upper-link {
  color: var(--secondary-purple);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-upper-link:hover {
  color: var(--primary-dark);
}

.footer-mid {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-cyan) 100%);
  color: white;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-mid-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-mid-left-text {
  margin: 0;
  font-size: 0.875rem;
}

.footer-mid-left-link {
  color: white;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.footer-mid-left-link:hover {
  opacity: 0.8;
}

.footer-mid-center {
  font-size: 1.0625rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
}

.footer-mid-right {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.footer-lower {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  text-align: center;
  padding-top: 2.5rem;
}

.trust-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.trust-label {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
}

.trust-symbols {
  display: flex;
  gap: 0.5rem;
}

.trust-symbol {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-cyan) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 0.375rem;
}

.dialog-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.dialog-container {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: 1.25rem;
  max-width: 540px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.dialog-title {
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dialog-form {
  margin-top: 1.5rem;
}

.dialog-label {
  display: block;
  margin-bottom: 0.625rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.dialog-input {
  width: 100%;
  padding: 0.875rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  box-sizing: border-box;
  font-size: 0.9375rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.dialog-input:focus {
  outline: none;
  border-color: var(--secondary-purple);
}

.dialog-select {
  width: 100%;
  padding: 0.875rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  background: var(--bg-white);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.dialog-select:focus {
  outline: none;
  border-color: var(--secondary-purple);
}

.dialog-submit {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-cyan) 100%);
  color: white;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 0.875rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.dialog-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  opacity: 0.9;
}

.dialog-cancel {
  padding: 0.875rem 2rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  background-color: var(--bg-light);
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-weight: 500;
}

.dialog-cancel:hover {
  background-color: var(--border-color);
}

.dialog-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.dialog-close:hover {
  color: var(--primary-dark);
  background: var(--bg-light);
}

.agreement-notice {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
}

.agreement-notice-text {
  margin: 0;
  color: var(--text-secondary);
}

.agreement-notice-link {
  color: var(--secondary-purple);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.agreement-notice-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem 1.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .navigation-menu {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .banner-section {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2.5rem;
    text-align: center;
  }

  .banner-title {
    font-size: 2.25rem;
  }

  .content-wrapper {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .lottery-card-body {
    padding: 2rem;
  }

  .lottery-card-title {
    font-size: 1.75rem;
  }

  .footer-mid {
    flex-direction: column;
    text-align: center;
  }

  .dialog-container {
    padding: 2rem 1.5rem;
  }
}
  </style>
