@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Noto+Sans+JP:wght@300;400;500&family=Noto+Sans:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:        #0d0f12;
  --bg2:       #141720;
  --bg3:       #1c2030;
  --border:    #2a2f3f;
  --border2:   #3a4055;
  --text:      #c8cdd8;
  --text2:     #8892a4;
  --text3:     #555f72;
  --gold:      #c8942a;
  --gold2:     #e8b84b;
  --gold-dim:  #3a2c10;
  --red:       #c0392b;
  --red-dim:   #2a1010;
  --blue:      #3a7bd5;
  --blue-dim:  #0f1e35;
  --green:     #2e8b57;
  --green-dim: #0f2318;
  --purple:    #7c5cbf;
  --purple-dim:#1a1228;
  --radius:    6px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', 'Noto Sans', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold2);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold2); }

code, .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82em;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--gold2);
}

/* ── Layout ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,15,18,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1rem;
}

.site-logo {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold2);
  white-space: nowrap;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo .gem {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-btn {
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  transition: all .15s;
  text-decoration: none;
}

.lang-btn.active, .lang-btn:hover {
  border-color: var(--gold);
  color: var(--gold2);
  background: var(--gold-dim);
}

/* ── Hero ── */
.hero {
  padding: 4rem 0 2.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.hero-sub {
  color: var(--text2);
  font-size: 0.92rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Act nav pills ── */
.act-nav {
  display: flex;
  gap: 0.5rem;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.act-pill {
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text2);
  background: var(--bg2);
  transition: all .15s;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.act-pill:hover, .act-pill.active {
  border-color: var(--gold);
  color: var(--gold2);
  background: var(--gold-dim);
}

.act-pill.coming-soon {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* ── Zone Card ── */
.zone-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.zone-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s;
}

.zone-card:hover {
  border-color: var(--border2);
}

.zone-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.zone-header::-webkit-details-marker { display: none; }

.zone-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  background: var(--gold-dim);
}

.zone-names {
  flex: 1;
  min-width: 0;
}

.zone-name-en {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zone-name-ja {
  font-size: 0.78rem;
  color: var(--text2);
  margin-top: 1px;
}

.zone-badges {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.badge-boss   { background: var(--red-dim);    color: #e57373; border: 1px solid #5a1515; }
.badge-wp     { background: var(--blue-dim);   color: #64b0f0; border: 1px solid #1a3560; }
.badge-quest  { background: var(--green-dim);  color: #5dbf85; border: 1px solid #1a4030; }
.badge-opt    { background: var(--bg3);        color: var(--text3); border: 1px solid var(--border); }

.zone-chevron {
  color: var(--text3);
  font-size: 0.7rem;
  transition: transform .2s;
  flex-shrink: 0;
}

details[open] .zone-chevron { transform: rotate(180deg); }

/* ── Zone Body ── */
.zone-body {
  border-top: 1px solid var(--border);
  padding: 16px;
}

/* Confidence dots */
.confidence-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.confidence-label {
  font-size: 0.72rem;
  color: var(--text3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.conf-dots {
  display: flex;
  gap: 3px;
}

.conf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.conf-dot.on  { background: var(--gold); }
.conf-dot.off { background: var(--border); }

/* Steps */
.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.step-bullet {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--bg3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--text3);
  margin-top: 2px;
}

.step-en {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}

.step-ja {
  font-size: 0.8rem;
  color: var(--text2);
  margin-top: 1px;
  line-height: 1.5;
}

/* Tip box */
.tip-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 2px solid var(--purple);
  background: var(--purple-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.82rem;
  color: #b8a8e0;
  line-height: 1.6;
}

.warn-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 2px solid var(--red);
  background: var(--red-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.82rem;
  color: #e89090;
  line-height: 1.6;
}

/* ── Summary tables ── */
.summary-section {
  margin: 2rem 0;
  position: relative;
  z-index: 1;
}

.summary-section h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold2);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.08em;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.data-table th {
  text-align: left;
  padding: 8px 12px;
  color: var(--text3);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

.data-table tr:hover td { background: var(--bg2); }

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

.site-footer a { color: var(--text2); }
.site-footer a:hover { color: var(--gold); }

/* ── Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 1.5rem 0;
  position: relative;
  z-index: 1;
}

/* ── Index page ── */
.index-acts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  padding: 1.5rem 0 3rem;
  position: relative;
  z-index: 1;
}

.act-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color .15s, transform .15s;
  text-decoration: none;
  display: block;
}

.act-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  color: inherit;
}

.act-card.soon {
  opacity: 0.4;
  pointer-events: none;
}

.act-card-num {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.act-card-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.act-card-meta {
  font-size: 0.78rem;
  color: var(--text2);
}

.act-card-soon-badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  color: var(--text3);
  letter-spacing: 0.05em;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .zone-badges { display: none; }
  .zone-name-en { font-size: 0.88rem; }
  .hero h1 { font-size: 1.4rem; }
  .hero { padding: 2.5rem 0 2rem; }
}
