:root {
  --bg-top: #8fdbff;
  --bg-mid: #c5f2d6;
  --bg-bottom: #f4fff1;
  --surface: rgba(243, 255, 245, 0.88);
  --surface-strong: rgba(250, 255, 250, 0.96);
  --ink: #111111;
  --ink-soft: #1f1f1f;
  --muted: #4a4a4a;
  --line: #bfe4c8;
  --line-strong: #8cc3a1;
  --primary: #2f9b4b;
  --primary-2: #1f7c38;
  --accent: #70ce64;
  --teal: #19a7a2;
  --shadow-sm: 0 8px 24px rgba(26, 88, 44, 0.12);
  --shadow-md: 0 18px 42px rgba(24, 73, 48, 0.2);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Sora", "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% -8%, rgba(163, 229, 255, 0.82), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(136, 234, 159, 0.45), transparent 26%),
    linear-gradient(180deg, var(--bg-top) 0px, var(--bg-mid) 520px, var(--bg-bottom) 980px);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  inset: 0;
  opacity: 0.18;
  background-image: url("/assets/img/pattern-grid.svg");
  background-size: 320px 320px;
  animation: slowDrift 36s linear infinite;
}

body::after {
  width: 520px;
  height: 520px;
  border-radius: 50%;
  right: -200px;
  top: 180px;
  background: radial-gradient(circle, rgba(130, 226, 122, 0.38), rgba(130, 226, 122, 0));
  animation: floatOrb 8s ease-in-out infinite;
}

a {
  color: #111111;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(124, 184, 150, 0.46);
  background: rgba(236, 252, 241, 0.76);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  color: #111111;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.nav-links a {
  color: #111111;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.4rem 0.62rem;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(74, 167, 99, 0.18);
  color: #111111;
  text-decoration: none;
}

.menu-btn {
  display: none;
  border: 1px solid rgba(140, 195, 161, 0.68);
  background: rgba(255, 255, 255, 0.82);
  color: #111111;
  border-radius: 10px;
  padding: 0.48rem 0.8rem;
  font-weight: 700;
}

main {
  position: relative;
}

.hero {
  padding: 3.1rem 0 1.5rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -30px;
  width: min(1160px, 92%);
  height: 560px;
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(43, 148, 90, 0.62), rgba(91, 184, 232, 0.52)),
    url("/assets/img/splash-world.svg") center/cover no-repeat;
  filter: saturate(1.16);
  box-shadow: var(--shadow-md);
  z-index: -1;
  animation: glowPulse 8s ease-in-out infinite;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: stretch;
}

.panel,
.card,
.hero-card {
  background: var(--surface);
  border: 1px solid rgba(176, 220, 189, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.2rem;
  backdrop-filter: blur(6px);
}

.elevated {
  border-color: rgba(156, 207, 173, 0.95);
  box-shadow: var(--shadow-md);
}

.hero-copy {
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(131, 218, 120, 0.24), rgba(131, 218, 120, 0));
  pointer-events: none;
}

.hero-side {
  background: linear-gradient(180deg, rgba(250, 255, 250, 0.96) 0%, rgba(241, 255, 243, 0.96) 100%);
}

.hero-showcase {
  margin-bottom: 0.85rem;
  display: grid;
  gap: 0.58rem;
}

.hero-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(150, 199, 161, 0.8);
  background: #dff7e3;
  box-shadow: 0 10px 24px rgba(42, 112, 58, 0.22);
}

.hero-figure img {
  width: 100%;
  height: 172px;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.08) brightness(1.03);
}

.hero-figure-small img {
  height: 128px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  margin-bottom: 0.84rem;
  border-radius: 999px;
  padding: 0.33rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #111111;
  background: linear-gradient(90deg, #cef5d1 0%, #d7fff2 100%);
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  margin-bottom: 0.72rem;
  font-size: clamp(1.95rem, 2.9vw, 3rem);
}

h2 {
  margin-bottom: 0.68rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

h3 {
  margin-bottom: 0.52rem;
  font-size: 1.08rem;
}

p {
  margin: 0 0 0.86rem;
  color: var(--ink-soft);
}

.lead {
  font-size: 1.03rem;
  color: #1f1f1f;
}

.btn-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid transparent;
  padding: 0.62rem 1rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 12px 24px rgba(31, 89, 230, 0.35);
}

.btn-secondary {
  color: #111111;
  border-color: #a8d6b5;
  background: #f3fff6;
}

.keyword-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.72rem 0 0;
  padding: 0;
  list-style: none;
}

.keyword-pills li {
  font-size: 0.76rem;
  font-weight: 700;
  color: #111111;
  background: #e9fbe8;
  border: 1px solid #caebca;
  border-radius: 999px;
  padding: 0.26rem 0.62rem;
}

.kv {
  margin: 0;
  padding-left: 1.08rem;
}

.kv li {
  margin-bottom: 0.42rem;
}

.status-list {
  margin-top: 0.92rem;
  display: grid;
  gap: 0.5rem;
}

.status-item {
  border: 1px solid rgba(170, 213, 181, 0.95);
  background: #f4fff5;
  border-radius: 12px;
  padding: 0.58rem 0.7rem;
}

.status-item span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #444444;
}

.status-item strong {
  display: block;
  color: #1f1f1f;
  font-size: 0.96rem;
}

.section {
  padding: 1.4rem 0;
}

.section-tight {
  padding-top: 0.54rem;
}

.section-head {
  margin-bottom: 0.78rem;
}

.section-head h2 {
  color: #111111;
}

.section-head p {
  color: #2c2c2c;
  margin: 0;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

.status-card {
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(160, 210, 174, 0.76);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 255, 242, 0.92) 100%);
  padding: 0.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.status-card:hover {
  transform: translateY(-2px);
  text-decoration: none;
  border-color: #7ec190;
}

.status-card span {
  display: block;
  font-size: 0.75rem;
  color: #444444;
  font-weight: 700;
}

.status-card strong {
  color: #111111;
  font-size: 1rem;
}

.quick-grid,
.news-grid,
.scene-grid,
.grid {
  display: grid;
  gap: 0.85rem;
}

.quick-grid,
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-panel,
.news-item,
.scene-card {
  background: linear-gradient(180deg, rgba(250, 255, 250, 0.96) 0%, rgba(238, 252, 239, 0.94) 100%);
}

.quick-panel h3,
.news-item h3,
.scene-card h3 {
  color: #111111;
}

.quick-links {
  margin: 0;
  padding-left: 1.1rem;
}

.quick-links li {
  margin-bottom: 0.34rem;
}

.news-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.scene-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scene-card {
  border: 1px solid rgba(169, 214, 182, 0.82);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.scene-card img {
  width: 100%;
  height: 184px;
  object-fit: cover;
  transition: transform 0.28s ease;
  filter: saturate(1.08) brightness(1.02);
}

.scene-card:hover img {
  transform: scale(1.04);
}

.scene-body {
  padding: 0.8rem;
}

.character-roster {
  display: grid;
  gap: 1rem;
}

.character-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  border: 1px solid rgba(162, 210, 177, 0.86);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(251, 255, 252, 0.95) 0%, rgba(239, 253, 241, 0.9) 48%, rgba(214, 247, 223, 0.78) 100%);
  box-shadow: var(--shadow-sm);
}

.character-copy {
  padding: 1.15rem 1.25rem;
}

.character-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #555555;
  text-transform: uppercase;
}

.character-name {
  margin-top: 0.25rem;
  margin-bottom: 0.4rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: #111111;
}

.weapon-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
  margin: 0 0 0.75rem;
  padding: 0;
}

.weapon-tags li {
  font-size: 0.79rem;
  font-weight: 700;
  color: #111111;
  border: 1px solid #adddb8;
  background: #e6f9e8;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.character-quote {
  margin: 0 0 0.55rem;
  font-weight: 800;
  line-height: 1.3;
  color: #111111;
  font-size: 1.15rem;
}

.character-desc {
  margin: 0;
  color: #2c2c2c;
}

.character-media {
  position: relative;
  min-height: 290px;
}

.character-media img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: contain;
  object-position: center bottom;
  background: linear-gradient(180deg, rgba(221, 247, 226, 0.58) 0%, rgba(200, 236, 209, 0.52) 100%);
  filter: saturate(1.1) contrast(1.02);
}

.character-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(241, 255, 244, 0.7) 0%, rgba(241, 255, 244, 0.16) 38%, rgba(241, 255, 244, 0) 72%);
}

.character-badge {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #111111;
  background: rgba(231, 252, 235, 0.84);
  border: 1px solid rgba(153, 207, 169, 0.86);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
}

.theme-diane .character-media::after {
  background: linear-gradient(90deg, rgba(254, 244, 232, 0.66) 0%, rgba(254, 244, 232, 0.1) 48%, rgba(254, 244, 232, 0) 76%);
}

.theme-tristan .character-media::after {
  background: linear-gradient(90deg, rgba(231, 245, 255, 0.7) 0%, rgba(231, 245, 255, 0.12) 48%, rgba(231, 245, 255, 0) 76%);
}

.theme-tioreh .character-media::after {
  background: linear-gradient(90deg, rgba(235, 252, 241, 0.7) 0%, rgba(235, 252, 241, 0.12) 48%, rgba(235, 252, 241, 0) 76%);
}

.theme-clotho .character-media::after {
  background: linear-gradient(90deg, rgba(229, 234, 255, 0.7) 0%, rgba(229, 234, 255, 0.12) 48%, rgba(229, 234, 255, 0) 76%);
}

.theme-king .character-media::after {
  background: linear-gradient(90deg, rgba(237, 255, 230, 0.7) 0%, rgba(237, 255, 230, 0.12) 48%, rgba(237, 255, 230, 0) 76%);
}

.media-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #555555;
}

.list-clean {
  margin: 0;
  padding-left: 1.14rem;
  color: var(--ink-soft);
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

.page-head {
  position: relative;
  padding: 2.25rem 0 1.2rem;
  isolation: isolate;
}

.page-head::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, 92%);
  top: 0.35rem;
  bottom: 0;
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(53, 150, 94, 0.64), rgba(97, 188, 228, 0.56)),
    url("/assets/img/splash-world.svg") center/cover no-repeat;
  box-shadow: var(--shadow-md);
  z-index: -1;
}

.page-head .container {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(173, 218, 186, 0.8);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.page-head .breadcrumb,
.page-head p,
.page-head h1 {
  margin-left: 0;
}

.breadcrumb {
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.footer {
  margin-top: 2.2rem;
  border-top: 1px solid rgba(121, 182, 147, 0.52);
  background: linear-gradient(180deg, rgba(54, 138, 92, 0.9) 0%, rgba(39, 117, 78, 0.95) 100%);
}

.footer .container {
  padding: 1.3rem 0 1.65rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 1rem;
}

.footer strong,
.footer .small,
.footer a {
  color: #ecfff1;
}

.footer a {
  opacity: 0.96;
}

.footer a:hover {
  color: #ffffff;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowDrift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 260px 180px;
  }
}

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

@keyframes glowPulse {
  0%,
  100% {
    filter: saturate(1.1) brightness(1);
  }
  50% {
    filter: saturate(1.25) brightness(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1050px) {
  .hero-stage,
  .news-grid,
  .quick-grid,
  .grid-3,
  .footer-grid,
  .status-strip,
  .scene-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero::before {
    height: 620px;
  }

  .character-card {
    grid-template-columns: 1fr;
  }

  .character-media,
  .character-media img {
    min-height: 240px;
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.66rem;
    border-top: 1px solid rgba(138, 195, 160, 0.46);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.48rem 0.4rem;
  }

  .hero::before,
  .page-head::before {
    width: 94%;
  }

  .hero-figure img,
  .hero-figure-small img {
    height: 160px;
  }
}
