/* ═══════════════════════════════════════════
   clousry.space — Majima Goro Theme
   Mad Dog of Shimano · 1988 Sotenbori
   ═══════════════════════════════════════════ */

:root {
  --void: #060408;
  --deep: #0e0a14;
  --panel: #110d1a;
  --panel2: #160f20;

  --gold: #c4a035;
  --gold-lt: #e8c84a;
  --gold-dk: #8a6f20;
  --gold-glow: rgba(196, 160, 53, 0.35);

  --purple: #6a2fa0;
  --purple-lt: #9b5cd4;
  --purple-glow: rgba(106, 47, 160, 0.4);

  --white: #ede8df;
  --cream: #c8bfa8;
  --muted: rgba(200, 191, 168, 0.5);
  --dim: rgba(200, 191, 168, 0.2);

  --border: rgba(196, 160, 53, 0.18);
  --border-hover: rgba(196, 160, 53, 0.45);

  --font-jp: 'Shippori Mincho', 'Zen Antique', serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--white);
  font-family: var(--font-body);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ═══ BACKGROUND CANVAS ═══ */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ═══ NOISE ═══ */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

/* ═══ CURTAIN / INTRO ═══ */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: curtainFall 0.7s var(--ease) 2.2s both;
  border-bottom: 3px solid var(--gold);
}

@keyframes curtainFall {
  to {
    transform: translateY(-100%);
  }
}

.curtain-inner {
  text-align: center;
  animation: curtainIn 0.6s var(--ease) 0.2s both;
}

@keyframes curtainIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.curtain-kanji {
  font-family: var(--font-jp);
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 30px var(--gold-glow), 0 0 60px rgba(196, 160, 53, 0.2);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.curtain-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.45em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.curtain-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 20px;
}

.curtain-name {
  font-family: var(--font-jp);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.3em;
}

/* ═══ SITE ═══ */
.site {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  opacity: 0;
  animation: siteIn 0.6s var(--ease) 3.0s both;
}

@keyframes siteIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ═══ TOPBAR ═══ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.tb-left,
.tb-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tb-sym {
  font-family: var(--font-jp);
  font-size: 22px;
  color: var(--gold);
  text-shadow: 0 0 12px var(--gold-glow);
  line-height: 1;
}

.tb-title {
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--white);
}

.tb-sep {
  color: var(--dim);
}

.tb-sub {
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.tb-clock {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.tb-loc {
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ═══ HERO ═══ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(106, 47, 160, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Left */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.hero-vertical-text {
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  font-family: var(--font-jp);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--dim);
  white-space: nowrap;
  user-select: none;
}

.hero-rank {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--muted);
  text-transform: uppercase;
}

.rank-val {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--gold);
  background: rgba(196, 160, 53, 0.08);
  border: 1px solid var(--border);
  padding: 3px 10px;
}

.hero-name {
  font-family: var(--font-jp);
  font-size: clamp(72px, 12vw, 140px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hn-main {
  color: var(--white);
}

.hn-accent {
  color: var(--gold);
  text-shadow: 0 0 30px var(--gold-glow), 0 0 60px rgba(196, 160, 53, 0.15);
}

.hero-kanji-stack {
  display: flex;
  gap: 4px;
  user-select: none;
  pointer-events: none;
}

.hero-kanji-stack span {
  font-family: var(--font-jp);
  font-size: 28px;
  color: var(--dim);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.hero-kanji-stack span:hover {
  color: var(--gold);
}

.hero-roles {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
  flex-wrap: wrap;
}

.hero-roles .dot {
  color: var(--gold);
}

/* Right */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

/* Eye panel */
.eye-panel {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.eye-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196, 160, 53, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.eye-outer {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px var(--gold-glow), inset 0 0 20px rgba(196, 160, 53, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: eyePulse 3s ease-in-out infinite;
}

@keyframes eyePulse {

  0%,
  100% {
    box-shadow: 0 0 20px var(--gold-glow), inset 0 0 20px rgba(196, 160, 53, 0.05);
  }

  50% {
    box-shadow: 0 0 40px rgba(196, 160, 53, 0.5), inset 0 0 30px rgba(196, 160, 53, 0.08);
  }
}

.eye-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--purple-lt), var(--purple));
  box-shadow: 0 0 15px var(--purple-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-pupil {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0a0308;
  border: 2px solid rgba(196, 160, 53, 0.3);
  box-shadow: 0 0 8px rgba(106, 47, 160, 0.6);
  animation: eyeMove 6s ease-in-out infinite;
}

@keyframes eyeMove {

  0%,
  100% {
    transform: translate(0, 0);
  }

  20% {
    transform: translate(4px, -3px);
  }

  40% {
    transform: translate(-3px, 2px);
  }

  60% {
    transform: translate(2px, 4px);
  }

  80% {
    transform: translate(-4px, -2px);
  }
}

.eye-patch {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 30px;
  background: #0a0308;
  border: 1.5px solid rgba(196, 160, 53, 0.25);
  border-radius: 4px;
  transform: rotate(-10deg);
}

.eye-patch::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 8px;
  background: rgba(196, 160, 53, 0.25);
}

.ep-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--muted);
}

/* Quote */
.hero-quote {
  border-left: 3px solid var(--gold);
  padding: 16px 0 16px 20px;
  font-style: normal;
}

.quote-jp {
  font-family: var(--font-jp);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px var(--gold-glow);
}

.quote-en {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  font-style: italic;
  display: block;
  margin-bottom: 8px;
}

.hero-quote cite {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--dim);
  font-style: normal;
}

/* CTA */
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Mad Dog Button */
.mad-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 11px 26px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s var(--ease);
}

.mad-btn:hover {
  transform: translateY(-2px);
}

.mad-btn:active {
  transform: translateY(1px);
}

.mb-border {
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  transition: all 0.2s;
}

.mb-fill {
  position: absolute;
  inset: 0;
  transition: all 0.2s var(--ease);
}

.mad-btn.primary .mb-fill {
  background: linear-gradient(135deg, var(--gold-dk), var(--gold));
}

.mad-btn.ghost .mb-fill {
  background: transparent;
}

.mad-btn.ghost:hover .mb-fill {
  background: rgba(196, 160, 53, 0.07);
}

.mad-btn.primary:hover .mb-fill {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
}

.mb-text {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--void);
}

.mad-btn.ghost .mb-text {
  color: var(--gold);
}

/* ═══ SECTION DIVIDER ═══ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.div-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.div-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--muted);
  white-space: nowrap;
}

/* ═══ ABOUT ═══ */
.about-section {
  padding: 64px 0;
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  gap: 40px;
  align-start: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.about-number {
  font-family: var(--font-jp);
  font-size: 80px;
  font-weight: 800;
  color: rgba(196, 160, 53, 0.06);
  line-height: 1;
  user-select: none;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sec-title {
  font-family: var(--font-jp);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  position: relative;
}

.sec-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-top: 10px;
}

.about-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mtag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 4px 14px;
  background: rgba(196, 160, 53, 0.06);
  border: 1px solid var(--border);
  color: var(--gold);
  transition: all 0.2s;
  cursor: default;
}

.mtag:hover {
  background: rgba(196, 160, 53, 0.12);
  border-color: var(--border-hover);
}

.avail-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #4ade80;
}

.avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: availBlink 2s ease-in-out infinite;
}

@keyframes availBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.about-deco {
  font-family: var(--font-jp);
  font-size: 40px;
  font-weight: 800;
  color: rgba(196, 160, 53, 0.06);
  line-height: 1.1;
  text-align: right;
  user-select: none;
  align-self: center;
}

/* ═══ SETUP ═══ */
.setup-section {
  padding: 64px 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.setup-number {
  font-family: var(--font-jp);
  font-size: 80px;
  font-weight: 800;
  color: rgba(196, 160, 53, 0.06);
  line-height: 1;
  user-select: none;
}

.setup-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.sg-item {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: hidden;
}

.sg-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 0.4s var(--ease);
}

.sg-item:hover::before {
  width: 100%;
}

.sg-item:hover {
  border-color: var(--border);
  background: var(--panel2);
}

.sg-k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.sg-v {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.03em;
}

/* ═══ LINKS ═══ */
.links-section {
  padding: 64px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.links-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.link-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(196, 160, 53, 0.04), transparent);
  transition: left 0.4s var(--ease);
}

.link-card:hover::after {
  left: 100%;
}

.link-card:hover {
  border-color: var(--border);
  background: var(--panel2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(196, 160, 53, 0.06);
}

.link-card.gold {
  grid-column: span 2;
  background: rgba(196, 160, 53, 0.04);
  border-color: var(--border);
}

.link-card.gold:hover {
  background: rgba(196, 160, 53, 0.08);
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(196, 160, 53, 0.12);
}

.lc-num {
  font-family: var(--font-jp);
  font-size: 32px;
  font-weight: 800;
  color: rgba(196, 160, 53, 0.15);
  min-width: 40px;
  line-height: 1;
}

.lc-body {
  flex: 1;
}

.lc-name {
  font-family: var(--font-jp);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
}

.lc-handle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.lc-arrow {
  font-size: 18px;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}

.link-card:hover .lc-arrow {
  opacity: 1;
  transform: translate(4px, -4px);
}

/* ═══ WORKS ═══ */
.works-section {
  padding: 64px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.work-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s var(--ease);
}

.work-row:hover {
  border-color: var(--border);
  background: var(--panel2);
}

.wr-idx {
  font-family: var(--font-jp);
  font-size: 36px;
  font-weight: 800;
  color: rgba(196, 160, 53, 0.15);
  min-width: 44px;
}

.wr-info {
  flex: 1;
}

.wr-name {
  font-family: var(--font-jp);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
}

.wr-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.wr-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 4px 14px;
  border: 1px solid;
}

.wr-badge.live {
  background: rgba(74, 222, 128, 0.06);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.2);
}

.wr-badge.wip {
  background: rgba(251, 191, 36, 0.06);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.2);
}

/* ═══ FOOTER ═══ */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 48px;
  flex-wrap: wrap;
  gap: 12px;
}

.ft-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ft-kanji {
  font-family: var(--font-jp);
  font-size: 22px;
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold-glow);
}

.ft-text {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-family: var(--font-jp);
}

.ft-text.muted {
  color: var(--dim);
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--void);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dk);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

::selection {
  background: rgba(196, 160, 53, 0.3);
  color: var(--white);
}

/* ═══ MOBILE ═══ */
@media (max-width: 700px) {
  .site {
    padding: 0 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0;
  }

  .hero-vertical-text {
    display: none;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-number,
  .about-deco,
  .setup-number {
    display: none;
  }

  .setup-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .setup-grid {
    grid-template-columns: 1fr;
  }

  .links-row {
    grid-template-columns: 1fr;
  }

  .link-card.gold {
    grid-column: span 1;
  }

  .tb-right {
    display: none;
  }
}