:root {
  --ink: #f6f1fb;
  --muted: #b9adcc;
  --bg: #09070f;
  --panel: rgba(16, 12, 28, 0.62);
  --panel-strong: rgba(20, 14, 36, 0.82);
  --line: rgba(255, 255, 255, 0.08);
  --gold: #e8c56b;
  --gold-2: #c49a2c;
  --sakura: #f3b7cc;
  --indigo: #23183d;
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(232, 197, 107, 0.16), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(168, 92, 168, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(7, 5, 14, 0.78), rgba(7, 5, 14, 0.92)),
    url("/static/img/zenya-bg.jpg") center top / cover no-repeat fixed,
    var(--bg);
  letter-spacing: 0.01em;
}

.petal-layer { pointer-events: none; position: fixed; inset: 0; overflow: hidden; z-index: 0; }
.petal {
  position: absolute; top: -20px; width: 9px; height: 13px;
  background: radial-gradient(circle at 30% 30%, #ffe0ec, #e089ab);
  border-radius: 80% 0 80% 0; opacity: .55; animation: fall linear forwards;
}
@keyframes fall { to { transform: translate3d(50px, 110vh, 0) rotate(360deg); opacity: 0; } }

.nav, main, footer { position: relative; z-index: 1; }
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 6vw;
  position: sticky; top: 0;
  background: rgba(8, 6, 16, 0.55);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-family: "Fraunces", serif; font-size: 26px; font-weight: 500; }
.brand img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; border: 1px solid rgba(232,197,107,.45); }
.nav nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; }
.nav a:hover { color: var(--ink); }
.nav-quiet { opacity: 0.7; }

main { padding: 36px 6vw 96px; max-width: 1280px; margin: 0 auto; }
h1, h2, h3 { font-family: "Fraunces", serif; font-weight: 550; margin: 0 0 12px; letter-spacing: -0.03em; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 0.98; }
h2 { font-size: clamp(28px, 4vw, 44px); }
.lead { font-size: 18px; max-width: 42ch; color: var(--muted); line-height: 1.65; margin: 0; }
.eyebrow { letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-size: 11px; font-weight: 600; margin: 0 0 10px; }

.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.hero-art img {
  width: 100%; border-radius: 28px; display: block;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 999px; text-decoration: none;
  font-weight: 650; font-size: 14px; border: 1px solid transparent;
}
.btn-gold { background: linear-gradient(180deg, #f3d78a, var(--gold-2)); color: #1a1206; }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,0.03); }
button.btn { cursor: pointer; font: inherit; }

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  color: var(--muted); border-radius: 999px; padding: 6px 10px; font-size: 12px;
}

.section { margin: 72px 0; }
.section-head { margin-bottom: 22px; max-width: 50ch; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step, .card, .panel, .guild-card, .faq article, .cta-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(16px);
}
.step span { display: block; color: var(--gold); font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.step p, .card p, .faq p { color: var(--muted); line-height: 1.55; margin: 0; }

.bento { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; }
.card.wide { grid-column: 1 / -1; }
.kicker { color: var(--sakura); font-size: 12px; font-weight: 600; margin: 0 0 8px; }
.cmd-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.cmd-chips code, code {
  color: var(--sakura);
  background: rgba(243, 183, 204, 0.08);
  border: 1px solid rgba(243, 183, 204, 0.16);
  border-radius: 8px; padding: 2px 7px; font-size: 13px;
}

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cta-band {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: linear-gradient(120deg, rgba(36, 24, 62, 0.85), rgba(18, 12, 32, 0.8));
}
.cta-band p { color: var(--muted); margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.big { font-size: 36px; font-family: "Fraunces", serif; margin: 0; }
.page-head { margin-bottom: 28px; max-width: 54ch; }
.page-head p { color: var(--muted); }

.cmd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.cmd-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hint { margin-top: 22px; color: var(--muted); }

.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.guild-card { display: flex; gap: 14px; align-items: center; }
.guild-card img, .icon-fallback { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.icon-fallback { display: grid; place-items: center; background: var(--indigo); }
.guild-card a { color: var(--gold); }

.dash-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.guild-side { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.guild-side a { color: var(--muted); text-decoration: none; }
.guild-side a:hover { color: var(--gold); }

.settings-form { display: grid; gap: 16px; }
.settings-form fieldset { display: grid; gap: 10px; }
.settings-form label { display: grid; gap: 6px; color: var(--muted); }
.settings-form input[type="text"],
.settings-form input[type="number"],
.settings-form input[type="url"],
.settings-form input:not([type="checkbox"]),
.settings-form select,
.settings-form textarea {
  background: rgba(8,6,16,.7);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
.narrow { max-width: 640px; }
.rank-list { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.rank-list span { color: var(--gold); margin-right: 8px; }

.now-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 20px;
  align-items: center;
  margin: 0 0 22px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(24,16,42,.88), rgba(10,8,18,.78));
  border: 1px solid var(--line);
  border-radius: 24px;
}
.now-cover {
  width: 168px; height: 168px; object-fit: cover;
  border-radius: 18px; box-shadow: 0 16px 40px rgba(0,0,0,.35);
  background: #140c22;
}
.now-source {
  margin: 0 0 4px; color: var(--gold); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.now-title { margin: 0; font-size: 26px; line-height: 1.15; }
.now-artist, .now-where, .now-time, .now-hint { margin: 6px 0 0; color: var(--muted); }
.now-bar {
  margin-top: 14px; height: 8px; border-radius: 99px;
  background: rgba(255,255,255,.08); overflow: hidden;
}
.now-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--sakura));
}
.now-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.now-controls button {
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; cursor: pointer;
}
.now-controls button:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 700px) {
  .now-card { grid-template-columns: 1fr; }
  .now-cover { width: 100%; height: 220px; }
}

.site-foot {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 6vw 48px; color: var(--muted); border-top: 1px solid var(--line);
  max-width: 1280px; margin: 0 auto;
}
.site-foot p { margin: 8px 0 0; }
.foot-links { display: flex; gap: 16px; align-items: center; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .hero, .steps, .bento, .faq, .dash-wrap, .grid-3, .cta-band { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .nav { flex-direction: column; gap: 12px; }
  .nav .btn { display: none; }
  main { padding: 24px 5vw 72px; }
}
