@font-face {
  font-family: 'BarusuInter';
  src: url('/assets/fonts/inter-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BarusuInter';
  src: url('/assets/fonts/inter-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0914;
  --surface: #141024;
  --surface-hover: #1c1733;
  --border: #2a2347;
  --text: #ece9f6;
  --muted: #9e97b8;
  --accent: #8b5cf6;
  --crimson: #e11d48;
  --silver: #cbd5e1;
}

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

body {
  background: radial-gradient(circle at 20% 0%, #1d1438 0%, var(--bg) 55%);
  color: var(--text);
  font-family: 'BarusuInter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; width: 100%; }

header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  background: rgba(11, 9, 20, 0.88);
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; }
.brand span {
  background: linear-gradient(135deg, var(--crimson), var(--accent));
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #fff;
}

.nav-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.94rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; font-weight: 600; }

.hero {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--border);
}

.badge {
  display: inline-block;
  border: 1px solid rgba(225, 29, 72, 0.45);
  background: rgba(225, 29, 72, 0.12);
  color: #fda4af;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); line-height: 1.2; margin-bottom: 12px; }
h2 { font-size: 1.5rem; margin-bottom: 8px; }
.jp-sub { color: var(--muted); font-size: 1.02rem; margin-bottom: 18px; }
.hero-desc { max-width: 720px; color: var(--silver); margin-bottom: 26px; }
.section-lead { color: var(--muted); margin-bottom: 22px; }

section { padding: 44px 0; border-bottom: 1px solid var(--border); }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  transition: 0.2s;
}
.btn-primary { background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; }
.btn-primary:hover { opacity: 0.92; text-decoration: none; }
.btn-secondary { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { background: var(--surface-hover); text-decoration: none; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.15s;
}
.tab-btn:hover { color: var(--text); border-color: var(--accent); }
.tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05040a;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption {
  margin-top: 12px;
  font-size: 0.87rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent); }
.card-tag {
  font-size: 0.77rem;
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; }

.arc-item, .update-item {
  background: var(--surface);
  border-left: 3px solid var(--crimson);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.update-item { border-left-color: var(--accent); }
.update-meta { font-size: 0.8rem; color: #c4b5fd; margin-bottom: 4px; }
.arc-item h3, .update-item h3 { font-size: 1.05rem; margin-bottom: 5px; }
.arc-item p, .update-item p { color: var(--muted); font-size: 0.92rem; }

.dl-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.dl-table th, .dl-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}
.dl-table th { color: #c4b5fd; background: rgba(139, 92, 246, 0.08); }
.dl-table tr:last-child td { border-bottom: none; }

.legal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.legal-box h2 { font-size: 1.25rem; margin-bottom: 12px; }
.legal-box p { color: var(--silver); margin-bottom: 12px; font-size: 0.94rem; }

.error-box {
  text-align: center;
  padding: 80px 20px;
}
.error-code {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--crimson), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}

footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.84rem;
  border-top: 1px solid var(--border);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.footer-links { display: flex; gap: 16px; }

.puck-404 {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.28);
  border: 1px solid rgba(139, 92, 246, 0.35);
  animation: floatPuck 3.8s ease-in-out infinite;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
}

.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--accent); color: #fff; }

.hero-banner {
  margin: 0 0 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
  aspect-ratio: 21 / 9;
  background: var(--surface);
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.gallery-card figcaption {
  padding: 10px 14px;
  font-size: 0.86rem;
  color: var(--muted);
}
.hash-code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 4px;
  word-break: break-all;
}
