/* =========================================================
   SIROKATA Official Site
   ---------------------------------------------------------
   HTML/CSS/JavaScriptのみで構築した静的サイトです。
   画像はすべて assets/images/ から読み込みます。
   ========================================================= */

:root {
  --bg: #090909;
  --bg-soft: #070911;
  --panel: rgba(8, 10, 18, 0.54);
  --panel-strong: rgba(10, 12, 22, 0.78);
  --line: rgba(255, 255, 255, 0.22);
  --line-soft: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --quiet: rgba(255, 255, 255, 0.54);
  --violet: #a166ff;
  --violet-soft: #d2b6ff;
  --blue: #188cff;
  --red: #ff5e5a;
  --radius: 12px;
  --radius-small: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
  --glass-blur: blur(22px) saturate(145%);
  --serif: "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --max: 1168px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 64% 16%, rgba(151, 84, 255, 0.28), transparent 30rem),
    radial-gradient(circle at 52% 41%, rgba(117, 60, 174, 0.35), transparent 25rem),
    linear-gradient(180deg, #010205 0%, #05070d 58%, #020306 100%);
  overflow-x: hidden;
}

body::before {
  /* モックにある星屑のような繊細な光をCSSだけで再現します。 */
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.48) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(180, 112, 255, 0.5) 0 1px, transparent 1.8px);
  background-position:
    5% 9%,
    40% 18%;
  background-size:
    160px 160px,
    230px 230px;
  opacity: 0.12;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.36) 42%, rgba(0, 0, 0, 0.1) 100%),
    radial-gradient(circle at 50% 42%, rgba(181, 103, 255, 0.22), transparent 26rem);
}

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

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

button {
  font: inherit;
}

/* 画面には見せず、支援技術には読ませるための共通クラスです。 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #08090f;
  background: #fff;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.header-inner {
  display: grid;
  grid-template-columns: 220px 1fr 120px;
  align-items: start;
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  padding: 27px 0 0;
}

.brand {
  width: max-content;
  letter-spacing: 0.36em;
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  line-height: 1;
  letter-spacing: 0.34em;
}

.brand-sub {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.58em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(34px, 6vw, 72px);
  padding-top: 10px;
  font-size: 0.92rem;
}

.site-nav a {
  position: relative;
  padding: 0 0 16px;
  color: rgba(255, 255, 255, 0.92);
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.site-nav a::after {
  position: absolute;
  right: -18px;
  bottom: 0;
  left: -18px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(191, 139, 255, 0.8), transparent);
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.site-nav a::before {
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 6px;
  height: 6px;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 18px var(--violet-soft);
  opacity: 0;
  transform: translateX(-50%);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: #fff;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after,
.site-nav a.is-active::before {
  opacity: 1;
  transform: scaleX(1);
}

.language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
}

.language-switch span {
  color: rgba(255, 255, 255, 0.38);
}

.language-switch a {
  opacity: 0.58;
  transition: opacity 0.2s ease;
}

.language-switch a:hover,
.language-switch a:focus-visible,
.language-switch a[aria-current="true"] {
  opacity: 1;
}

.nav-toggle {
  display: none;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.35fr) minmax(560px, 0.65fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  min-height: 760px;
  padding: 136px max(44px, calc((100vw - 1360px) / 2)) 64px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(8px);
}

.hero-glow-a {
  right: 13%;
  bottom: 80px;
  width: 560px;
  height: 310px;
  background: radial-gradient(circle, rgba(160, 83, 255, 0.28), transparent 68%);
}

.hero-glow-b {
  right: 30%;
  top: 130px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(122, 64, 200, 0.18), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 390px;
  padding: 28px 0 42px;
}

.eyebrow {
  margin: 0 0 19px;
  color: #b777ff;
  font-size: clamp(0.82rem, 1.3vw, 1rem);
  letter-spacing: 0.62em;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.35rem, 4.5vw, 4.75rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.095em;
  text-shadow: 0 8px 38px rgba(0, 0, 0, 0.7);
}

.hero-rule {
  display: block;
  width: 48px;
  height: 1px;
  margin: 38px 0 28px;
  background: rgba(255, 255, 255, 0.66);
}

.hero-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.02rem, 1.25vw, 1.22rem);
  line-height: 1.72;
  letter-spacing: 0.08em;
}

.ghost-link,
.link-card,
.faq-card,
.mini-button {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.button-icon,
.link-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
}

.patreon-icon,
.link-icon-patreon {
  background: linear-gradient(135deg, #ff5a57, #ff4646);
  box-shadow: 0 0 26px rgba(255, 81, 78, 0.52);
}

.unifans-icon,
.link-icon-unifans,
.link-icon-pixiv {
  background: linear-gradient(135deg, #0095ff, #236cff);
  box-shadow: 0 0 26px rgba(31, 128, 255, 0.52);
}

.link-icon-fansky {
  background: linear-gradient(135deg, #24c7ff, #8a5cff);
  box-shadow: 0 0 26px rgba(92, 150, 255, 0.52);
}

@media (min-width: 1025px) {
  .links-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.scroll-cue {
  display: grid;
  width: max-content;
  gap: 7px;
  justify-items: center;
  margin: 72px 0 0 112px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.68rem;
  letter-spacing: 0.46em;
}

.scroll-cue svg {
  width: 25px;
  height: 25px;
  stroke: #f6efff;
  stroke-width: 1.6;
  fill: none;
  filter: drop-shadow(0 0 9px rgba(177, 109, 255, 0.8));
  animation: float-arrow 1.5s ease-in-out infinite;
}

.hero-figure {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: end;
  width: min(100%, 860px);
  margin: 0 -48px 0 0;
}

.hero-figure::after {
  position: absolute;
  right: -5%;
  bottom: 0;
  left: 0;
  height: 24%;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(2, 3, 7, 0.72) 70%, rgba(2, 3, 7, 0.92));
}

.image-open {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  cursor: zoom-in;
  background: transparent;
  border: 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 660px;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 38px 78px rgba(0, 0, 0, 0.58));
}

/* =========================================================
   Shared Sections
   ========================================================= */

.section {
  padding: 32px max(44px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line-soft);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2vw, 1.82rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.18em;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 134px;
  min-height: 38px;
  gap: 16px;
  padding: 9px 18px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.84rem;
  border-radius: 8px;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease;
}

.ghost-link:hover,
.ghost-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.44);
  transform: translateY(-2px);
}

/* =========================================================
   Character Samples
   ========================================================= */

.character-section {
  padding-right: max(32px, calc((100vw - 1440px) / 2));
  padding-left: max(32px, calc((100vw - 1440px) / 2));
  padding-top: 36px;
  padding-bottom: 34px;
  background:
    radial-gradient(circle at 50% 10%, rgba(116, 72, 178, 0.1), transparent 34rem),
    linear-gradient(180deg, rgba(1, 2, 5, 0.86), rgba(7, 9, 16, 0.97));
}

.carousel-shell {
  position: relative;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
}

.character-card {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid rgba(186, 103, 255, 0.24);
  border-radius: 8px;
  background: #07090f;
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  isolation: isolate;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.character-card img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  aspect-ratio: 0.72;
  object-fit: cover;
  transition:
    transform 0.6s ease,
    filter 0.4s ease;
}

.character-card:hover,
.character-card:focus-within {
  border-color: rgba(207, 151, 255, 0.78);
  box-shadow:
    0 24px 70px rgba(105, 54, 190, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-8px);
}

.character-card:hover img,
.character-card:focus-within img {
  filter: brightness(1.08) saturate(1.08);
  transform: scale(1.06);
}

.card-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.66) 78%, rgba(0, 0, 0, 0.94)),
    radial-gradient(circle at 50% 100%, rgba(131, 70, 255, 0.3), transparent 46%);
}

.character-copy {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
}

.character-copy h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.72);
}

.character-copy p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 104px;
  min-height: 36px;
  gap: 20px;
  padding: 8px 15px;
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
}

.mini-button:hover,
.mini-button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.48);
}

.round-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  cursor: pointer;
  background: rgba(3, 4, 10, 0.58);
  border: 1px solid rgba(207, 175, 255, 0.78);
  border-radius: 50%;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(-50%);
  transition:
    transform 0.22s ease,
    background 0.22s ease;
}

.round-nav span {
  display: block;
  margin-top: -2px;
  font-size: 1.9rem;
  line-height: 1;
}

.round-nav:hover,
.round-nav:focus-visible {
  background: rgba(93, 48, 160, 0.64);
  transform: translateY(-50%) scale(1.08);
}

.round-nav-left {
  left: -36px;
}

.round-nav-right {
  right: -36px;
}

/* =========================================================
   Links
   ========================================================= */

.links-section {
  padding-top: 28px;
  padding-bottom: 24px;
  background: rgba(2, 3, 8, 0.92);
}

.links-grid {
  display: grid;
  /* リンク数が増減しても、カード幅を保ちながら自動で折り返します。 */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 24px;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  min-height: 148px;
  padding: 26px 20px 19px;
  border-radius: 8px;
  transition:
    transform 0.26s ease,
    border-color 0.26s ease,
    box-shadow 0.26s ease;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 20px 48px rgba(112, 74, 190, 0.22);
  transform: translateY(-6px);
}

.link-icon {
  width: 52px;
  height: 52px;
  font-size: 1.2rem;
}

.link-icon-pixiv {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 400;
}

.link-icon-x {
  color: #fff;
  background: #030303;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.12);
}

.link-icon-discord {
  background: linear-gradient(135deg, #7a77ff, #5c4df6);
  box-shadow: 0 0 26px rgba(107, 104, 255, 0.58);
}

.link-copy strong,
.link-copy small {
  display: block;
}

.link-copy strong {
  margin-bottom: 9px;
  font-size: 0.99rem;
}

.link-copy small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  line-height: 1.15;
}

.arrow {
  position: absolute;
  right: 21px;
  bottom: 16px;
  font-size: 1.35rem;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-section {
  padding-top: 26px;
  padding-bottom: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(61, 128, 180, 0.08), transparent 20rem),
    rgba(3, 4, 9, 0.95);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.faq-card {
  position: relative;
  min-height: 136px;
  padding: 20px 24px 18px;
  border-radius: 8px;
}

.faq-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.summary-mark {
  transition: transform 0.22s ease;
}

.faq-card[open] .summary-mark {
  transform: rotate(180deg);
}

.faq-card p {
  max-width: 30ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.62;
}

.faq-icon {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: rgba(209, 190, 255, 0.7);
  font-size: 1.7rem;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding: 23px max(44px, calc((100vw - var(--max)) / 2)) 18px;
  background: rgba(3, 4, 8, 0.98);
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.footer-brand {
  display: grid;
  justify-items: center;
  text-align: center;
}

.footer-brand .brand-name {
  font-size: 1.55rem;
}

.footer-brand .brand-sub {
  margin-top: 8px;
  font-size: 0.62rem;
}

.footer-brand small {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.footer-age-notice {
  margin: 18px 0 0;
  padding-top: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 4.5vw, 52px);
  width: 100%;
  font-family: var(--serif);
  font-size: 1.75rem;
}

.footer-top-row {
  display: none;
  justify-content: center;
  margin-top: 20px;
}

.to-top {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-family: var(--sans);
  font-size: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
}

/* =========================================================
   Modal
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(820px, 92vw);
  max-height: 88vh;
  padding: 12px;
  overflow: hidden;
  background: rgba(10, 12, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.modal-panel img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#modal-caption {
  margin: 10px 4px 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

/* =========================================================
   Scroll Animation
   ========================================================= */

.section-observe {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.section-observe.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float-arrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

/* =========================================================
   Premium revision layer
   ========================================================= */

body {
  background:
    radial-gradient(circle at 70% 20%, rgba(143, 80, 226, 0.13), transparent 34rem),
    linear-gradient(180deg, #090909 0%, #08080b 55%, #090909 100%);
}

body::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.25) 42%, rgba(0, 0, 0, 0.06) 100%),
    radial-gradient(circle at 66% 35%, rgba(155, 87, 255, 0.13), transparent 33rem);
}

.site-header {
  top: 18px;
  right: 0;
  left: 0;
  inset: 18px 0 auto;
  pointer-events: none;
  background: transparent;
}

.header-inner {
  align-items: center;
  width: min(1080px, calc(100% - 64px));
  padding: 14px 20px;
  pointer-events: auto;
  background: rgba(9, 9, 12, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.brand-sub,
.site-nav,
.language-switch {
  padding-top: 0;
}

.brand-sub {
  margin-top: 7px;
}

.site-nav {
  gap: clamp(30px, 5vw, 58px);
}

.hero {
  grid-template-columns: minmax(300px, 0.3fr) minmax(600px, 0.7fr);
  min-height: 100svh;
  padding-top: 132px;
  background: radial-gradient(circle at 70% 48%, rgba(151, 86, 255, 0.08), transparent 28rem);
}

.hero-glow-a {
  background: radial-gradient(circle, rgba(160, 83, 255, 0.2), transparent 68%);
}

.hero h1 {
  font-size: clamp(3.45rem, 4.8vw, 5.15rem);
}

.hero-figure {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-figure::after {
  z-index: 3;
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 1.35s ease,
    transform 5s ease;
}

.hero-slide.is-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
}

.hero-slide.is-entering {
  opacity: 0;
  transform: scale(1.03);
}

.hero-slide.is-leaving {
  opacity: 0;
  transform: scale(1);
}

.samples-heading {
  margin-bottom: 18px;
}

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

.character-card {
  min-height: 340px;
}

.character-card img {
  min-height: 340px;
  aspect-ratio: 0.78;
}

.links-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
  gap: 18px;
}

/* Final refinement: softer brand navigation and stronger artwork hierarchy. */
.header-inner {
  background: rgba(10, 10, 13, 0.34);
  border-color: transparent;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.eyebrow {
  margin-bottom: 12px;
}

.hero-copy {
  margin-top: 28px;
}

.hero-rule {
  display: none;
}

.hero {
  grid-template-columns: minmax(300px, 0.29fr) minmax(640px, 0.71fr);
}

.hero-figure {
  width: min(110%, 946px);
  filter: drop-shadow(0 42px 82px rgba(0, 0, 0, 0.4));
}

.hero-slide {
  filter: none;
}

/* Final micro-tuning requested after visual review. */
.site-header,
.header-inner,
.brand-name,
.brand-sub {
  transition:
    padding 0.28s ease,
    transform 0.28s ease,
    font-size 0.28s ease,
    margin 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.site-header.is-compact .header-inner {
  padding-top: 8px;
  padding-bottom: 8px;
  background: rgba(10, 10, 13, 0.42);
  box-shadow:
    0 16px 46px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.035) inset;
}

.site-header.is-compact .brand-name {
  font-size: clamp(1.22rem, 1.65vw, 1.6rem);
}

.site-header.is-compact .brand-sub {
  margin-top: 5px;
  font-size: 0.56rem;
}

.hero-copy strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.hero-figure {
  width: min(116%, 994px);
  margin-right: -96px;
}

.hero-slide {
  transform: scale(1.02);
}

.hero-slide.is-active {
  transform: scale(1);
}

.hero-slide.is-entering {
  transform: scale(1.02);
}

.samples-heading {
  margin-bottom: 28px;
}

.character-card {
  border-color: transparent;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.character-card:hover,
.character-card:focus-within {
  border-color: transparent;
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.42);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 190px 1fr 100px;
    width: min(var(--max), calc(100% - 40px));
  }

  .site-nav {
    gap: 32px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 112px 28px 0;
  }

  .hero-content {
    max-width: 650px;
  }

  .hero-figure {
    width: min(760px, 94vw);
    margin: 24px auto 0;
  }

  .scroll-cue {
    margin-right: auto;
    margin-left: auto;
  }

  .section,
  .site-footer {
    padding-right: 28px;
    padding-left: 28px;
  }

  .site-footer {
    text-align: center;
  }

  .footer-inner {
    display: grid;
    justify-items: center;
    gap: 22px;
  }

  .footer-brand {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    width: 100%;
  }

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

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

  .round-nav {
    display: none;
  }
}

@media (max-width: 720px) {
  body::after {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.2)),
      radial-gradient(circle at 45% 30%, rgba(181, 103, 255, 0.2), transparent 22rem);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    width: calc(100% - 34px);
    padding-top: 18px;
  }

  .brand-name {
    font-size: 1.28rem;
  }

  .brand-sub {
    margin-top: 7px;
    font-size: 0.58rem;
  }

  .nav-toggle {
    position: relative;
    z-index: 62;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .nav-toggle span:not(.sr-only) {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 1px;
    background: #fff;
    transform-origin: center;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

  .nav-toggle span:not(.sr-only) + span:not(.sr-only) {
    margin-top: 0;
  }

  .nav-toggle span:nth-child(2) {
    transform: translate(-50%, -5px);
  }

  .nav-toggle span:nth-child(3) {
    transform: translate(-50%, 5px);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translate(-50%, 0) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translate(-50%, 0) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: 78px;
    right: 17px;
    left: 17px;
    z-index: 60;
    display: grid;
    gap: 0;
    padding: 10px;
    visibility: hidden;
    background: rgba(8, 10, 18, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    opacity: 0;
    box-shadow: var(--shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    text-align: center;
    padding: 14px 14px;
    border-radius: 8px;
  }

  .site-nav a::before,
  .site-nav a::after {
    display: none;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible,
  .site-nav a.is-active {
    background: rgba(255, 255, 255, 0.08);
  }

  .language-switch {
    position: fixed;
    top: 29px;
    right: 72px;
    z-index: 61;
    display: flex;
    gap: 8px;
    padding-top: 0;
    font-size: 0.72rem;
  }

  .hero {
    display: grid;
    padding: 104px 20px 0;
  }

  .hero-content {
    order: 2;
    max-width: none;
    text-align: center;
  }

  .eyebrow {
    letter-spacing: 0.42em;
  }

  .hero-rule {
    margin-right: auto;
    margin-left: auto;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .scroll-cue {
    margin: 34px auto 0;
  }

  .hero-figure {
    order: 1;
    width: calc(100vw - 40px);
    max-width: none;
    margin: 16px auto 34px;
  }

  .hero-slide,
  .hero-figure img {
    aspect-ratio: 16 / 9;
    max-height: none;
    border-radius: 0;
  }

  .section {
    padding: 26px 18px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .ghost-link {
    min-width: 104px;
  }

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

  .character-card img {
    aspect-ratio: 0.86;
  }

  .links-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .link-card {
    min-height: 132px;
  }

  .footer-links {
    gap: 18px;
  }

  .footer-top-row {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   Stories
   ========================================================= */

.stories-section {
  padding-top: 58px;
  padding-bottom: 88px;
}

.stories-heading {
  align-items: flex-end;
  margin-bottom: 32px;
}

.section-eyebrow {
  margin: 0 0 14px;
  color: #cf85ff;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.section-lede {
  max-width: 430px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.94rem, 1.2vw, 1.06rem);
  line-height: 1.8;
}

.stories-section .character-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.story-category-card {
  min-height: 390px;
  border-color: transparent;
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.story-card-link {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  cursor: pointer;
}

.story-category-card .story-card-link:focus-visible {
  outline: 2px solid rgba(204, 140, 255, 0.9);
  outline-offset: 4px;
  border-radius: 18px;
}

.story-card-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.35vw, 1.48rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

.story-card-copy > span:first-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.story-arrow {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 1.25rem;
  opacity: 0.92;
  transform: translateX(0);
  transition: transform 0.24s ease;
}

.story-category-card:hover .story-arrow,
.story-category-card:focus-within .story-arrow {
  transform: translateX(5px);
}

.story-page-main {
  min-height: 100vh;
  padding-top: 112px;
}

.story-hero {
  position: relative;
  overflow: hidden;
  padding: 28px max(44px, calc((100vw - var(--max)) / 2)) 56px;
}

.story-page-glow {
  position: absolute;
  top: -180px;
  right: 4%;
  width: min(720px, 72vw);
  aspect-ratio: 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(133, 64, 223, 0.22), transparent 62%);
  filter: blur(12px);
}

.breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: rgba(221, 178, 255, 0.86);
  transition: color 0.2s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: #fff;
}

.story-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(300px, 0.62fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.story-title-block h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.story-title-block h1::after {
  display: block;
  width: 58px;
  height: 2px;
  margin-top: 26px;
  content: "";
  background: linear-gradient(90deg, #d77aff, rgba(215, 122, 255, 0));
}

.story-hero-image {
  position: relative;
  overflow: hidden;
  margin: 0;
  justify-self: center;
  width: min(560px, 100%);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 34px 96px rgba(0, 0, 0, 0.52),
    0 0 110px rgba(137, 76, 218, 0.18);
}

.story-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.18);
}

.story-gallery-section {
  padding-top: 34px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line-soft);
}

.story-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.story-image-card {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  padding: 0;
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 14px;
  background: #07090f;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 0 58px rgba(126, 76, 217, 0.12);
  cursor: pointer;
  isolation: isolate;
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease;
}

.story-extra-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 44px 0 24px;
  color: rgba(215, 140, 255, 0.9);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  letter-spacing: 0.18em;
}

.story-extra-divider::before,
.story-extra-divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(215, 140, 255, 0.34), transparent);
}

.story-image-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 42%, rgba(0, 0, 0, 0.46)),
    radial-gradient(circle at 14% 18%, rgba(184, 83, 255, 0.28), transparent 28%);
}

.story-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition:
    transform 0.55s ease,
    filter 0.35s ease;
}

.story-image-card:hover,
.story-image-card:focus-visible {
  box-shadow:
    0 28px 76px rgba(0, 0, 0, 0.46),
    0 0 84px rgba(161, 88, 255, 0.22);
  transform: translateY(-5px);
}

.story-image-card:hover img,
.story-image-card:focus-visible img {
  filter: brightness(1.08) saturate(1.08);
  transform: scale(1.045);
}

.story-image-card:focus-visible {
  outline: 2px solid rgba(211, 143, 255, 0.9);
  outline-offset: 4px;
}

.story-image-number {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.45rem);
  line-height: 0.86;
  letter-spacing: 0.04em;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.7);
}

.story-image-number::after {
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 12px;
  content: "";
  background: linear-gradient(90deg, #d77aff, rgba(215, 122, 255, 0));
}

.story-image-title {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  text-align: left;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.78);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.story-text-tags {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 58%;
}

.story-text-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 24px;
  padding: 4px 8px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid rgba(214, 143, 255, 0.38);
  border-radius: 999px;
  background: rgba(16, 12, 24, 0.58);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
}

.story-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
}

.story-pagination a,
.story-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  text-decoration: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.story-pagination a {
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.story-pagination a:hover,
.story-pagination a:focus-visible,
.story-pagination .is-active {
  color: #fff;
  background: rgba(162, 92, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 30px rgba(162, 92, 255, 0.18);
}

.story-pagination a:hover,
.story-pagination a:focus-visible {
  transform: translateY(-2px);
}

.story-pagination span[aria-disabled="true"] {
  color: rgba(255, 255, 255, 0.32);
}

.story-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 1120px) {
  .stories-section .character-grid,
  .story-image-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-hero-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .story-title-block {
    order: 2;
  }

  .story-hero-image {
    order: 1;
    width: min(520px, 92vw);
  }
}

@media (max-width: 820px) {
  .story-page-main {
    padding-top: 92px;
  }

  .story-hero {
    padding-right: 28px;
    padding-left: 28px;
  }

  .stories-section .character-grid,
  .story-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .story-category-card {
    min-height: 280px;
  }

  .story-image-card,
  .story-image-card img {
    min-height: 150px;
  }
}

@media (max-width: 560px) {
  .stories-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .stories-section .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-category-card {
    min-height: 245px;
  }

  .story-card-copy {
    right: 14px;
    bottom: 16px;
    left: 14px;
    font-size: 1rem;
  }

  .story-gallery-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .story-image-card,
  .story-image-card img {
    min-height: 124px;
  }

  .story-image-number {
    top: 12px;
    left: 12px;
    font-size: 2rem;
  }

  .story-image-title {
    right: 12px;
    bottom: 12px;
    left: 12px;
    font-size: 0.9rem;
  }

  .story-text-tags {
    top: 10px;
    right: 10px;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: end;
    gap: 5px 5px;
    max-width: none;
  }

  .story-text-tags span {
    min-width: 28px;
    min-height: 20px;
    padding: 3px 6px;
    font-size: 0.6rem;
  }
}

/* =========================================================
   Admin
   ========================================================= */

.admin-body {
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 76, 218, 0.2), transparent 36rem),
    linear-gradient(180deg, #05060a, #090a10 42%, #030407);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(8, 9, 14, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 30px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 30% 0%, rgba(166, 92, 255, 0.14), transparent 34%),
    rgba(7, 7, 11, 0.78);
  box-shadow: 20px 0 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(24px);
}

.admin-sidebar form {
  margin-top: auto;
}

.admin-side-nav {
  display: grid;
  gap: 8px;
}

.admin-side-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  text-decoration: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.admin-side-nav a:hover,
.admin-side-nav a.is-active {
  color: #fff;
  background: rgba(162, 92, 255, 0.18);
  transform: translateX(2px);
}

.admin-content {
  min-width: 0;
}

.admin-main,
.admin-login-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.admin-login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.admin-login-panel,
.admin-panel,
.admin-story-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(8, 10, 16, 0.72);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
}

.admin-login-panel {
  width: min(430px, 100%);
  padding: 34px;
}

.admin-title {
  padding: 72px 0 28px;
}

.admin-title h1,
.admin-form h1,
.admin-panel h2,
.admin-story-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.admin-title h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.admin-size-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.admin-size-guide strong,
.admin-size-guide span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(211, 143, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
}

.admin-size-guide strong {
  color: #fff;
  background: rgba(160, 92, 255, 0.22);
}

.admin-panel {
  margin: 0 0 28px;
  padding: clamp(22px, 3vw, 34px);
}

.admin-panel-heading {
  margin-bottom: 24px;
}

.admin-panel-heading p,
.admin-story-heading p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-grid-form {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  margin-bottom: 24px;
}

.admin-episode-form {
  grid-template-columns: minmax(150px, 1fr) 90px repeat(3, minmax(130px, 0.8fr)) minmax(210px, 1.2fr) minmax(170px, 1fr) auto;
}

.admin-compact-upload {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  max-width: 620px;
  margin-bottom: 24px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
}

.admin-form input,
.admin-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-form select {
  appearance: none;
  cursor: pointer;
}

.admin-checkbox {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.admin-checkbox input {
  width: auto;
  min-height: auto;
}

.admin-language-fieldset {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.admin-language-fieldset legend {
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.74rem;
}

.admin-language-fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.8);
}

.admin-language-fieldset input {
  width: auto;
  min-height: auto;
}

.admin-language-tags {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.admin-language-tags b {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  color: #fff;
  font-size: 0.64rem;
  border-radius: 999px;
  background: rgba(162, 92, 255, 0.28);
}

.admin-primary-button,
.admin-ghost-button,
.admin-danger-button {
  min-height: 44px;
  padding: 10px 16px;
  color: #fff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.admin-primary-button {
  background: linear-gradient(135deg, #8d4dff, #d06dff);
  box-shadow: 0 18px 42px rgba(142, 74, 255, 0.24);
}

.admin-ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.admin-danger-button {
  background: rgba(255, 82, 105, 0.22);
}

.admin-primary-button:hover,
.admin-ghost-button:hover,
.admin-danger-button:hover {
  transform: translateY(-2px);
}

.admin-message,
.admin-error {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
}

.admin-message {
  color: #d9ffe7;
  background: rgba(64, 198, 120, 0.14);
}

.admin-error {
  color: #ffd7dd;
  background: rgba(255, 82, 105, 0.16);
}

.admin-image-grid,
.admin-story-list {
  display: grid;
  gap: 14px;
}

.admin-image-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-hero-image-grid {
  grid-template-columns: repeat(auto-fill, minmax(92px, 100px));
}

.admin-image-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.admin-image-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  object-fit: cover;
}

.admin-hero-image-grid .admin-image-card {
  padding: 8px;
}

.admin-hero-image-grid .admin-image-card img {
  max-width: 100px;
  aspect-ratio: 16 / 9;
}

.admin-image-card img {
  max-width: 100px;
}

.admin-story-heading img {
  max-width: 100px;
}

.admin-image-card strong,
.admin-image-card span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-image-card span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
}

.admin-image-card .admin-order-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 7px 0 4px;
  padding: 4px 8px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(162, 92, 255, 0.26);
  box-shadow: 0 8px 20px rgba(162, 92, 255, 0.12);
}

.admin-episode-section {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-extra-episode-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-episode-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-episode-heading h4 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-episode-heading span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
}

.admin-story-card {
  padding: 22px;
}

.admin-story-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-story-menu-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  color: #fff;
  text-decoration: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.admin-story-menu-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.admin-story-menu-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.admin-story-menu-card span,
.admin-story-menu-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-story-menu-card span {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
}

.admin-story-menu-card small {
  color: rgba(255, 255, 255, 0.52);
}

.admin-edit-panel {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.admin-edit-preview {
  display: grid;
  gap: 10px;
}

.admin-edit-preview img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.admin-edit-preview span {
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.76rem;
}

.admin-story-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-story-heading img {
  width: min(100px, 34vw);
  aspect-ratio: 16 / 7;
  border-radius: 12px;
  object-fit: cover;
}

.admin-story-preview-pair {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
}

.admin-story-preview-pair figure {
  display: grid;
  gap: 6px;
  margin: 0;
}

.admin-story-preview-pair img {
  width: 100px;
  max-width: 100px;
  border-radius: 10px;
  object-fit: cover;
}

.admin-story-preview-pair figure:first-child img {
  aspect-ratio: 3 / 4;
}

.admin-story-preview-pair figure:last-child img {
  aspect-ratio: 3 / 4;
}

.admin-story-preview-pair figcaption {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.68rem;
  text-align: center;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
    padding: 22px 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .admin-sidebar form {
    margin-top: 0;
  }

  .admin-side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid-form,
  .admin-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-story-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .admin-grid-form,
  .admin-image-grid {
    grid-template-columns: 1fr;
  }

  .admin-story-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-story-heading img {
    width: 100%;
  }

  .admin-edit-panel {
    grid-template-columns: 1fr;
  }
}

/* Mobile header refinement: keep the language menu from colliding with the logo. */
@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "language toggle";
    row-gap: 12px;
    align-items: center;
    padding: 18px 20px 17px;
  }

  .brand {
    grid-area: brand;
    max-width: 100%;
    min-width: 0;
  }

  .brand-name {
    font-size: clamp(1.08rem, 5.2vw, 1.28rem);
    letter-spacing: 0.28em;
  }

  .brand-sub {
    font-size: clamp(0.5rem, 2.4vw, 0.58rem);
    letter-spacing: 0.42em;
  }

  .language-switch {
    position: static;
    grid-area: language;
    justify-content: flex-start;
    gap: 9px;
    width: max-content;
    max-width: 100%;
    padding-top: 0;
    font-size: clamp(0.68rem, 3vw, 0.78rem);
    line-height: 1;
  }

  .nav-toggle {
    grid-area: toggle;
    width: 50px;
    height: 50px;
  }

  .site-nav {
    top: 118px;
  }
}

/* Public mobile header: remove the top-right menu for a cleaner brand-first header. */
@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand language";
    column-gap: 12px;
    row-gap: 0;
    padding-right: 18px;
  }

  .nav-toggle,
  .site-nav {
    display: none;
  }

  .brand-name {
    font-size: clamp(1rem, 4.8vw, 1.2rem);
    letter-spacing: 0.25em;
  }

  .brand-sub {
    font-size: clamp(0.48rem, 2.2vw, 0.56rem);
    letter-spacing: 0.36em;
  }

  .language-switch {
    grid-area: language;
    justify-self: end;
    align-self: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
  }
}

/* Desktop Links layout: keep cards premium-sized by wrapping after four columns. */
@media (min-width: 1025px) {
  .links-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
