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

body.unified-theme {
  --bg-0: #0f1219;
  --bg-1: #1a1f2b;
  --panel: rgba(21, 25, 36, 0.88);
  --panel-strong: #1f2534;
  --text: #f0f3fa;
  --muted: #aeb7c9;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #ff7a1a;
  --accent-soft: rgba(255, 122, 26, 0.2);
  --sub-accent: #79c7ff;
  --radius: 14px;
  --shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
  --maxw: 1160px;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(121, 199, 255, 0.15), transparent 60%),
    radial-gradient(900px 560px at 88% 0%, rgba(255, 122, 26, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(15, 18, 25, 0.9), rgba(15, 18, 25, 0.96)),
    var(--unified-bg-image, url('/images/common/background-site.webp')) no-repeat center center fixed;
  background-size: auto, auto, auto, cover;
  overflow-x: hidden;
  padding-bottom: 0 !important;
}

body.unified-theme[data-i18n-page="keepdigging"],
body.unified-theme[data-i18n-page="dmz"] {
  --unified-bg-image: url('/images/common/background-games.webp');
}

body.unified-theme[data-i18n-page="team"] {
  --unified-bg-image: url('/images/common/background-news-team.webp');
}

body.unified-theme[data-i18n-page="keepdigging_support"] {
  --unified-bg-image: url('/images/keepdigging/background-support.webp');
}

body.unified-theme[data-i18n-page="presskit"] {
  --unified-bg-image: url('/images/presskit/background-hero.webp');
}

body.unified-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    -35deg,
    rgba(255, 255, 255, 0.015) 0,
    rgba(255, 255, 255, 0.015) 2px,
    transparent 2px,
    transparent 20px
  );
  mix-blend-mode: screen;
  z-index: -1;
}

body.unified-theme a {
  color: var(--sub-accent);
  text-decoration: none;
}

body.unified-theme a:hover {
  text-decoration: underline;
}

body.unified-theme .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(12, 14, 20, 0.75);
  border-bottom: 1px solid var(--line);
}

body.unified-theme .header-inner {
  width: min(100% - 28px, var(--maxw));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.unified-theme .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.unified-theme .brand img {
  width: clamp(140px, 26vw, 220px);
  height: auto;
  display: block;
}

body.unified-theme .brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

body.unified-theme .global-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: flex-end;
}

body.unified-theme .global-nav a {
  font-size: 0.86rem;
  color: #dfe7f7;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

body.unified-theme .global-nav a:hover {
  text-decoration: none;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

body.unified-theme .logo-header {
  display: none !important;
}

body.unified-theme main.page {
  width: min(100% - 28px, var(--maxw));
  margin: 22px auto 48px;
  display: grid;
  gap: 22px;
  padding: 0 !important;
}

body.unified-theme .container {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: grid;
  gap: 22px;
}

body.unified-theme .top-section,
body.unified-theme .info-section,
body.unified-theme .grid,
body.unified-theme .pillars,
body.unified-theme .role-accordion {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
  margin: 0 !important;
}

body.unified-theme .top-section > *,
body.unified-theme .info-section > * {
  grid-column: span 4;
  min-width: 0 !important;
}

body.unified-theme .grid > * {
  grid-column: span 6;
  min-width: 0 !important;
}

body.unified-theme .top-section .panel.panel-trailer,
body.unified-theme .info-section .panel.panel-big,
body.unified-theme .grid > .hero,
body.unified-theme .grid > .col-12 {
  grid-column: span 8;
}

body.unified-theme .top-section > *:only-child,
body.unified-theme .info-section > *:only-child,
body.unified-theme .grid > *:only-child {
  grid-column: 1 / -1;
}

body.unified-theme .panel,
body.unified-theme .card,
body.unified-theme .team-member,
body.unified-theme .credit-card,
body.unified-theme .hero,
body.unified-theme .criteria-lead,
body.unified-theme .role-accordion details {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  padding: clamp(18px, 2.8vw, 30px) !important;
}

body.unified-theme .panel {
  opacity: 0;
  transform: translateY(10px);
  animation: unified-rise-in 0.6s ease forwards;
}

body.unified-theme .top-section .panel:nth-child(2) { animation-delay: 0.08s; }
body.unified-theme .top-section .panel:nth-child(3) { animation-delay: 0.16s; }

body.unified-theme .panel h1,
body.unified-theme .panel h2,
body.unified-theme .panel h3,
body.unified-theme .hero h1,
body.unified-theme .card h1,
body.unified-theme .card h2,
body.unified-theme .card h3,
body.unified-theme .section h2 {
  font-family: 'Oswald', sans-serif;
  color: #ffd4b2 !important;
  text-shadow: none !important;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}

body.unified-theme .panel h2,
body.unified-theme .card h2,
body.unified-theme .section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
}

body.unified-theme .panel p,
body.unified-theme .panel li,
body.unified-theme .card p,
body.unified-theme .meta,
body.unified-theme .figcap,
body.unified-theme .hero p,
body.unified-theme .hint,
body.unified-theme .post-meta {
  color: var(--muted) !important;
}

body.unified-theme .panel strong,
body.unified-theme .panel em,
body.unified-theme .card strong {
  color: #eaf3ff;
}

body.unified-theme .panel ul,
body.unified-theme .panel ol,
body.unified-theme .card ul,
body.unified-theme .card ol {
  margin-left: 1.25em;
}

body.unified-theme .video-container {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #06080f;
}

body.unified-theme .video-container iframe {
  width: 100%;
  border: 0;
}

body.unified-theme .steam-widget {
  display: block;
  width: min(100%, 646px);
  max-width: 100%;
  margin: 0 auto;
  border: 0;
}

body.unified-theme .post-list-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  box-shadow: none;
}

body.unified-theme .post-list-item img {
  width: 124px;
  height: 84px;
  object-fit: cover;
  border-right: 1px solid var(--line);
}

body.unified-theme .post-list-item .post-content {
  padding: 10px 12px;
  flex: 1;
}

body.unified-theme .post-list-item .post-content h3 {
  font-family: 'Oswald', sans-serif;
  color: #ffd4b2;
  margin: 0 0 2px;
  font-size: 1.1rem;
}

body.unified-theme .post-list-item .post-content p {
  font-size: 0.9rem;
  line-height: 1.45;
}

body.unified-theme .team-grid,
body.unified-theme .credits-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

body.unified-theme .team-member,
body.unified-theme .credit-card {
  text-align: center;
}

body.unified-theme .team-member img {
  border-radius: 50%;
  border: 2px solid var(--line);
}

body.unified-theme .favorite-game {
  background: rgba(255, 122, 26, 0.15);
  border: 1px solid rgba(255, 122, 26, 0.35);
  color: #ffd4b2;
}

body.unified-theme .lang-divider {
  margin: 20px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 122, 26, 0.1);
  color: #f8cba7;
}

body.unified-theme pre,
body.unified-theme pre code,
body.unified-theme .mono {
  background: rgba(8, 11, 20, 0.85) !important;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #dce7fb;
}

body.unified-theme .email-chip {
  background: rgba(121, 199, 255, 0.12);
  border: 1px solid rgba(121, 199, 255, 0.36);
  color: #dbe8ff;
}

body.unified-theme footer {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: min(100% - 28px, var(--maxw)) !important;
  max-width: none !important;
  margin: 0 auto 24px !important;
  padding: 18px 20px !important;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: rgba(16, 19, 28, 0.86) !important;
  text-align: center;
}

body.unified-theme footer ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

body.unified-theme footer ul li {
  margin: 0 !important;
}

body.unified-theme footer ul li a,
body.unified-theme footer a {
  color: #f4bd96;
  text-decoration: none;
}

body.unified-theme footer ul li a:hover,
body.unified-theme footer a:hover {
  color: #ffe3c7;
  text-decoration: underline;
}

body.unified-theme footer p {
  font-size: 0.9rem;
  color: var(--muted) !important;
  margin: 0;
}

@keyframes unified-rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  body.unified-theme .top-section > *,
  body.unified-theme .info-section > *,
  body.unified-theme .grid > * {
    grid-column: span 6;
  }

  body.unified-theme .top-section .panel.panel-trailer,
  body.unified-theme .info-section .panel.panel-big,
  body.unified-theme .grid > .hero,
  body.unified-theme .grid > .col-12 {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  body.unified-theme .header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  body.unified-theme .global-nav {
    justify-content: flex-start;
  }

  body.unified-theme .global-nav a {
    font-size: 0.82rem;
    padding: 6px 9px;
  }

  body.unified-theme main.page {
    margin-top: 18px;
    margin-bottom: 28px;
    gap: 14px;
  }

  body.unified-theme .container,
  body.unified-theme .top-section,
  body.unified-theme .info-section,
  body.unified-theme .grid {
    gap: 14px;
  }

  body.unified-theme .top-section > *,
  body.unified-theme .info-section > *,
  body.unified-theme .grid > * {
    grid-column: span 12;
  }

  body.unified-theme .panel,
  body.unified-theme .card,
  body.unified-theme .team-member,
  body.unified-theme .credit-card,
  body.unified-theme .hero {
    padding: 16px !important;
  }

  body.unified-theme .post-list-item {
    flex-direction: column;
  }

  body.unified-theme .post-list-item img {
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body.unified-theme .brand-tag {
    display: none;
  }

  body.unified-theme .bear-icon {
    display: none;
  }
}
