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

:root {
  --gold:    #c9a84c;
  --gold2:   #e8d48b;
  --deep:    #0a0a12;
  --deep2:   #111122;
  --purple:  #2d1b6e;
  --indigo:  #1a0a3d;
  --text:    #e8e0d0;
  --text-dim:#9e9080;
  --radius:  12px;
  --font-title: 'Cinzel Decorative', serif;
  --font-body:  'Noto Serif JP', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--deep);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.8;
}

#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
}

#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3rem;
  background: rgba(10,10,18,0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.15em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold); }

.nav-cta {
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--deep) !important;
}

.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.hero-symbol {
  font-size: 3rem;
  color: var(--gold);
  animation: spin-slow 20s linear infinite;
  display: block;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(3.5rem, 10vw, 8rem);
  color: var(--gold);
  letter-spacing: 0.2em;
  animation: glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from { text-shadow: 0 0 40px rgba(201,168,76,0.4), 0 0 80px rgba(201,168,76,0.2); }
  to   { text-shadow: 0 0 60px rgba(201,168,76,0.7), 0 0 120px rgba(201,168,76,0.4); }
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-dim);
  letter-spacing: 0.25em;
  min-height: 1.5em;
}

.hero-scroll {
  margin-top: 2rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

.section {
  position: relative;
  z-index: 1;
  padding: 8rem 2rem;
}

.section-dark { background: rgba(17,17,34,0.85); }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold);
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: 0.2em;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1rem auto 0;
  opacity: 0.5;
}

.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 700px) {
  .about-grid { grid-template-columns: 1fr; text-align: center; }
}

.avatar-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: radial-gradient(circle, var(--purple), var(--indigo));
  animation: avatar-glow 4s ease-in-out infinite alternate;
}

@keyframes avatar-glow {
  from { box-shadow: 0 0 20px rgba(201,168,76,0.2); }
  to   { box-shadow: 0 0 60px rgba(201,168,76,0.5); }
}

.about-bio {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 2;
  margin-bottom: 1.5rem;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold2);
  padding: 0.3rem 0.9rem;
  border-radius: 30px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}

.tag:hover { background: rgba(201,168,76,0.1); }

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

.work-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.work-thumb {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
}

.work-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--gold);
  padding: 1rem 1.2rem 0.5rem;
  letter-spacing: 0.1em;
}

.work-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 0 1.2rem 1rem;
  line-height: 1.7;
}

.work-link {
  display: inline-block;
  padding: 0 1.2rem 1.2rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  transition: letter-spacing 0.3s;
}

.work-link:hover { letter-spacing: 0.15em; }

.social-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 800px) {
  .social-grid { grid-template-columns: 1fr; }
}

.social-label {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.x-embed-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.15);
}

.social-links-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  transition: all 0.3s;
}

.social-link-btn:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateX(4px);
}

.social-icon {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
}

.support-desc {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 3rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.amount-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.amount-btn {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold2);
  padding: 0.8rem 2rem;
  border-radius: 40px;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.08em;
}

.amount-btn:hover,
.amount-btn.active {
  background: var(--gold);
  color: var(--deep);
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(201,168,76,0.3);
}

.custom-amount-wrap {
  max-width: 380px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.custom-amount-wrap label {
  display: block;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.1em;
}

.custom-amount-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.3s;
}

.custom-amount-input:focus-within { border-color: var(--gold); }

.custom-amount-input span {
  color: var(--gold);
  font-size: 1.1rem;
}

.custom-amount-input input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
  width: 100%;
}

.message-wrap {
  max-width: 500px;
  margin: 0 auto 2rem;
}

.message-wrap textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 1rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s;
  line-height: 1.7;
}

.message-wrap textarea:focus { border-color: var(--gold); }

.support-submit-btn {
  display: block;
  margin: 0 auto;
  padding: 1.1rem 4rem;
  background: linear-gradient(135deg, #c9a84c, #e8d48b, #c9a84c);
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
  border: none;
  border-radius: 50px;
  color: var(--deep);
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 30px rgba(201,168,76,0.3);
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.support-submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 50px rgba(201,168,76,0.5);
}

.support-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.support-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 1.2rem;
  letter-spacing: 0.08em;
}

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem;
  border-top: 1px solid rgba(201,168,76,0.1);
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.2em;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

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

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