:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --surface: rgba(255, 248, 240, 0.03);
  --gold: #c9a227;
  --gold-light: #e8d5a3;
  --gold-dark: #8a7018;
  --lotus-pink: #e8b4b4;
  --lotus-pink-soft: rgba(232, 180, 180, 0.15);
  --text-primary: #f0e6d2;
  --text-secondary: #a89f91;
  --text-muted: #6b6560;
  --border: rgba(201, 162, 39, 0.15);
  --border-hover: rgba(201, 162, 39, 0.4);
  --glass: rgba(255, 255, 255, 0.03);
  --shadow-gold: rgba(201, 162, 39, 0.2);
  --font-heading: 'Syne', 'Syncopate', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-jp);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(120, 20, 20, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Background orbs */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.2), transparent 70%);
  top: -200px;
  left: -200px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 180, 180, 0.15), transparent 70%);
  bottom: -100px;
  right: -100px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  text-align: center;
}

.lotus-wrapper {
  width: 220px;
  height: 220px;
  margin-bottom: 2.5rem;
  position: relative;
  filter: drop-shadow(0 0 40px rgba(201, 162, 39, 0.25));
  transition: transform 0.2s ease-out;
}

.lotus-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.petal {
  fill: url(#petalGradient);
  stroke: rgba(201, 162, 39, 0.25);
  stroke-width: 0.5;
  opacity: 0;
  transform-origin: 0px 0px;
  transform: rotate(calc(var(--i) * 45deg)) scale(0) translateY(25px);
  animation: bloom 2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--i) * 0.1s + 0.4s);
}

@keyframes bloom {
  0% {
    opacity: 0;
    transform: rotate(calc(var(--i) * 45deg)) scale(0) translateY(25px);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: rotate(calc(var(--i) * 45deg)) scale(1) translateY(0);
  }
}

.lotus-center {
  opacity: 0;
  animation: centerGlow 1.2s ease forwards 1.8s;
}

@keyframes centerGlow {
  0% { opacity: 0; transform: scale(0); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-title {
  font-family: 'Syncopate', var(--font-heading);
  font-size: clamp(3rem, 10vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--lotus-pink) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 25px rgba(201, 162, 39, 0.15));
}

.hero-subtitle {
  font-family: var(--font-jp);
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.server-ip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}

.server-ip:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.1);
}

.ip-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.ip-address {
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 700;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-jp);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
}

.copy-btn .icon {
  width: 16px;
  height: 16px;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2.5s infinite ease-in-out;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.6;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}

/* Sections */
section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-family: var(--font-jp);
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.bento-card {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--shadow-gold);
}

.bento-card:hover::before {
  opacity: 0.5;
}

.bento-card.full-width {
  grid-column: 1 / -1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.section-intro .section-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 1rem;
  color: var(--gold-light);
}

.section-intro .section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* Rules Cards */
.rules-card {
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.card-icon {
  font-size: 1.6rem;
  line-height: 1;
  display: block;
}

.card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-light);
}

.rule-item {
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.3s ease;
}

.rule-item:hover {
  border-left-color: var(--gold);
}

.rule-item:last-child {
  margin-bottom: 0;
}

.rule-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}

.rule-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.rule-item strong {
  color: var(--text-primary);
  font-weight: 500;
}

.punishment {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--lotus-pink);
  background: var(--lotus-pink-soft);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(232, 180, 180, 0.2);
}

/* Wide card */
.wide-card {
  grid-column: span 2;
}

.resolution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.resolution-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.res-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.resolution-item h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.resolution-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Admin Section */
.admin-section {
  background: linear-gradient(180deg, transparent 0%, rgba(201, 162, 39, 0.03) 50%, transparent 100%);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.admin-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.admin-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.admin-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--shadow-gold);
}

.admin-card:hover::after {
  opacity: 1;
}

.admin-avatar {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--bg-primary);
  margin: 0 auto 1.5rem;
  border: 2px solid var(--border);
  box-shadow: 0 0 25px var(--shadow-gold);
  position: relative;
  z-index: 1;
}

.admin-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.admin-role {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 12px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-family: var(--font-jp);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.admin-link:hover {
  background: rgba(201, 162, 39, 0.18);
  border-color: var(--gold);
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--shadow-gold);
}

.admin-link .icon {
  width: 20px;
  height: 20px;
}

/* Community Section */
.community-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.telegram-banner {
  display: block;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.08) 0%, rgba(201, 162, 39, 0.04) 100%);
  border: 1px solid rgba(0, 136, 204, 0.2);
  border-radius: 24px;
  padding: 2.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.telegram-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.telegram-banner:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 136, 204, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 136, 204, 0.12);
}

.telegram-banner:hover::before {
  opacity: 1;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
  height: 100%;
}

.banner-icon {
  width: 64px;
  height: 64px;
  background: rgba(0, 136, 204, 0.12);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #08c;
  flex-shrink: 0;
}

.banner-icon svg {
  width: 36px;
  height: 36px;
}

.banner-text h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.banner-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.5;
}

.banner-arrow {
  margin-left: auto;
  font-size: 1.8rem;
  color: var(--text-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.telegram-banner:hover .banner-arrow {
  color: #08c;
  transform: translateX(8px);
}

.donation-card {
  background: linear-gradient(135deg, rgba(232, 180, 180, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(232, 180, 180, 0.15);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.donation-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 180, 180, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(232, 180, 180, 0.08);
}

.donation-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.donation-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--lotus-pink);
  margin-bottom: 1rem;
}

.donation-card > p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.donation-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.method {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  transition: border-color 0.3s ease;
}

.method:hover {
  border-color: var(--border-hover);
}

.method-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.method-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: block;
  word-break: break-all;
}

.donation-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-primary);
  font-family: var(--font-jp);
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: auto;
}

.donation-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--shadow-gold);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.footer-note {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .wide-card {
    grid-column: span 1;
  }
  
  .community-grid {
    grid-template-columns: 1fr;
  }
  
  .resolution-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    letter-spacing: 0.1em;
  }
  
  .server-ip {
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    width: 100%;
    max-width: 320px;
  }
  
  .banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .banner-arrow {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .lotus-wrapper {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .bento-card, .admin-card, .telegram-banner, .donation-card {
    padding: 1.5rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .hero {
    padding: 1.5rem;
  }
}
