@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Cinzel+Decorative:wght@700&display=swap");
:root {
  --gold: #e2b043;
  --ink: #2c2438;
  --header: #241e30;
  --cream: #e7eef2;
  --paper: #fffcf8;
  --muted: #6d6178;
  --coral: #d4654a;
  --header-h: 56px;
  --font: "Source Serif 4", Palatino, "Palatino Linotype", serif;
  --display: "MedievalSharp", "Source Serif 4", serif;
  --line: 1.5px solid var(--ink);
  --shadow: 0 14px 32px rgba(44, 36, 56, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.has-snap { scroll-snap-type: y mandatory; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--cream);
  display: grid;
  place-items: center;
  transition: opacity 0.45s, visibility 0.45s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader .logo-mark { font-size: clamp(52px, 8vw, 84px); color: var(--ink); }
.loader p {
  margin: 6px 0 0;
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 14px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  background: var(--header);
  border-bottom: 1.5px solid rgba(226, 176, 67, 0.45);
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--gold);
  background: none;
  padding: 0;
}
.logo-mark {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.nav a {
  position: relative;
  color: #f4efe6;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 0 6px;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--gold); }
.nav a:not(.nav-play)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.nav-play {
  color: var(--ink);
  background: var(--gold);
  padding: 8px 16px;
  border-radius: 8px;
  margin-left: 6px;
}
.nav a.nav-play::after { content: none; }
.nav a.nav-play:hover { background: #c9962e; color: var(--ink); }
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1.5px solid rgba(244, 239, 230, 0.55);
  background: transparent;
  color: #f4efe6;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.hero {
  position: relative;
  height: 100dvh;
  min-height: 620px;
  scroll-snap-align: start;
  overflow: hidden;
  background: #214e46;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.04); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}
.hero-logo {
  position: absolute;
  z-index: 2;
  top: 108px;
  left: 48px;
  text-decoration: none;
  color: var(--gold);
  transform: rotate(-3deg);
  transform-origin: left top;
  filter: drop-shadow(0 3px 0 rgba(44, 36, 56, 0.35));
}
.hero-logo .logo-mark {
  display: block;
  font-size: clamp(64px, 7.4vw, 108px);
  color: var(--gold);
  -webkit-text-stroke: 1px rgba(44, 36, 56, 0.28);
  line-height: 0.9;
  letter-spacing: 0.01em;
}
.logo-sub {
  display: inline-block;
  margin-top: 8px;
  background: var(--coral);
  color: var(--paper);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 8px;
}
.hero-tag {
  position: absolute;
  z-index: 2;
  left: 54px;
  bottom: 78px;
  max-width: 440px;
  margin: 0;
  background: rgba(36, 30, 48, 0.9);
  color: #f6f1e8;
  font-weight: 700;
  padding: 12px 14px;
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.store-badges {
  position: absolute;
  z-index: 3;
  right: 42px;
  bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 48px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.store-badge.alt { background: var(--gold); color: var(--ink); }
.store-badge:hover { transform: translateY(-2px); }

.scroll-hint {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--display);
  letter-spacing: 0.14em;
  font-size: 12px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}
.scroll-hint svg { width: 18px; height: 12px; fill: currentColor; }
.scroll-hint.is-hidden { opacity: 0; pointer-events: none; }
.to-top {
  position: fixed;
  z-index: 35;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  display: none;
  place-items: center;
}
.to-top.is-on { display: grid; }

.bgm-toggle {
  position: fixed;
  z-index: 45;
  left: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
  padding: 0;
}
.bgm-toggle:hover {
  transform: scale(1.08);
  background: #f0bd4f;
}
.bgm-toggle:active {
  transform: scale(0.95);
}
.bgm-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}
.bgm-toggle.is-playing svg {
  animation: bgm-pulse 2s infinite ease-in-out;
}
@keyframes bgm-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .bgm-toggle.is-playing svg { animation: none; }
}

.panel {
  position: relative;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--cream);
}
.section-inner {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px 24px 64px;
}
.banner {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  background: transparent;
  color: var(--ink);
  padding: 0 0 6px;
  border-bottom: var(--line);
}
.banner .en {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1;
  color: var(--gold);
}
.banner .sub { font-size: 14px; font-weight: 800; padding-bottom: 4px; }
.news-panel .banner {
  color: var(--paper);
  border-bottom-color: rgba(255, 250, 243, 0.35);
}

.news-grid {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}
.discord-widget {
  position: relative;
  background: #1e1f22;
  border-radius: 12px;
  overflow: hidden;
  min-height: 520px;
  box-shadow: var(--shadow);
}
.discord-widget iframe {
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
}
.discord-join {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #232428;
  text-decoration: none;
}
.discord-join span {
  flex: 1;
  height: 42px;
  display: grid;
  place-items: center;
  background: #5865f2;
  color: #fff;
  font-weight: 800;
  border-radius: 4px;
}
.news-panel {
  background: var(--header);
  color: var(--paper);
  border-radius: 12px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.movie-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.movie-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.movie-card img,
.movie-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.movie-card span {
  display: block;
  padding: 10px 12px 12px;
  font-weight: 800;
}
.play {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 250, 243, 0.94);
  pointer-events: none;
}
.play::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 12px;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent var(--ink);
}

.sys-wrap { width: min(980px, 100%); }
.sys-wrap .banner { margin-bottom: 22px; }
.sys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 34px;
}
.sys-card {
  position: relative;
  margin: 0;
  background: var(--paper);
  padding: 10px 10px 12px;
  border: var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.sys-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.crop-arthur { object-position: 48% 42%; }
.crop-dog { object-position: 18% 78%; }
.crop-horse { object-position: 86% 40%; }
.crop-wide { object-position: center 35%; }
.sys-card figcaption {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 6px 4px;
  text-align: center;
}
.sys-card img { border-radius: 6px; }
.sys-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.cta {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 8px;
}
.cta:hover { background: #c9962e; }

.cast {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cast article {
  background: var(--paper);
  padding: 12px 12px 16px;
  border: var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.cast img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: var(--cream);
}
.cast h3 {
  font-family: var(--display);
  font-size: 28px;
  margin: 10px 0 4px;
}
.cast p { margin: 0; font-weight: 700; }
.cast .role {
  display: inline-block;
  margin-top: 8px;
  background: var(--coral);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
}
.cast article.no-portrait,
.roster article.no-portrait {
  background: var(--paper);
  color: var(--ink);
}
.cast article.no-portrait h3,
.roster article.no-portrait h2 { color: var(--ink); }
.cast article.no-portrait .role { background: var(--coral); color: var(--paper); }
.roster article.no-portrait { min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 16px; }

.site-footer {
  scroll-snap-align: start;
  background: var(--header);
  color: #f3ebe3;
  padding: 42px 7vw 28px;
}
.foot-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.site-footer .logo { justify-self: center; color: var(--gold); }
.site-footer .logo-mark { font-size: 32px; color: var(--gold); }
.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
}
.socials a { color: #f3ebe3; display: grid; place-items: center; }
.socials svg { width: 28px; height: 28px; fill: currentColor; }
.socials a:hover { color: var(--gold); }
.specs { margin: 0; justify-self: end; text-align: left; }
.specs p { margin: 0 0 4px; }
.foot-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.foot-links a { color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; }
.foot-links a:hover { color: var(--gold); }
.legal { margin: 18px 0 0; text-align: center; color: #b7a89b; font-size: 12px; }
.cookie-open {
  background: none;
  border: 0;
  padding: 0;
  margin-left: 10px;
  color: #b7a89b;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
.cookie-open:hover { color: var(--gold); }
.faq { margin-top: 28px; }
.faq h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 52px);
  margin: 0 0 8px;
}
.faq details { border-top: var(--line); padding: 14px 0 6px; }
.faq details:last-child { border-bottom: var(--line); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; }
.faq details p, .faq details ul { margin: 10px 0 8px; }
.cookie-bar[hidden], .cookie-panel[hidden] { display: none; }
.cookie-bar, .cookie-panel {
  position: fixed;
  z-index: 40;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 24px));
  background: var(--paper);
  color: var(--ink);
  border: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.cookie-bar { bottom: 16px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.cookie-bar p { margin: 0; font-size: 14px; font-weight: 700; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-actions button, .cookie-panel button {
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px 12px;
}
.cookie-actions .cookie-accept, .cookie-panel .cookie-accept {
  background: var(--gold);
  color: var(--ink);
  border: 0;
}
.cookie-actions .cookie-manage, .cookie-panel .cookie-reject, .cookie-panel .cookie-close {
  background: transparent;
  color: var(--ink);
  border: var(--line);
}
.cookie-panel {
  bottom: 24px;
  padding: 22px 22px 18px;
}
.cookie-panel h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
  margin: 0 0 8px;
}
.cookie-panel p { margin: 0 0 12px; }
.cookie-panel label { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; font-weight: 700; }
.cookie-panel .cookie-actions { margin-top: 14px; justify-content: flex-end; }

.page {
  min-height: 100vh;
  padding: 96px 6vw 64px;
  background: var(--cream);
}
.page-narrow { width: min(880px, 100%); margin: 0 auto; }
.page-wide { width: min(1040px, 100%); margin: 0 auto; }
.sheet {
  background: var(--paper);
  padding: 28px 28px 32px;
  border: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.sheet h1, .page h1 {
  font-family: var(--display);
  letter-spacing: 0.01em;
  line-height: 0.95;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  margin: 0 0 12px;
}
.page h1 span { color: var(--gold); }
.lede { font-size: 18px; font-weight: 800; }
.sheet p { margin: 0 0 12px; }
.sheet ul, .sheet ol { margin: 0 0 16px; padding-left: 1.2em; }
.sheet li { margin: 0 0 6px; }
.kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
}

.mode-list { display: flex; flex-direction: column; gap: 22px; margin-top: 22px; }
.mode {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  padding: 12px;
  border: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.mode img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.mode h2 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 32px;
}
.mode h2 span { color: var(--gold); }
.mode p { margin: 0; }

.roster {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin: 22px 0 28px;
}
.roster article {
  background: var(--paper);
  border: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px 10px 16px;
}
.roster img,
.cast-grid img,
.cast img.portrait {
  width: 100%;
  height: 260px;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 92%, rgba(226, 176, 67, 0.45), transparent 58%),
    #efe4cf;
}
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin: 28px 0 8px;
}
.cast-grid article {
  background: var(--paper);
  border: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px 8px 14px;
}
.cast-grid h2 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.15;
  margin: 8px 4px 0;
  text-align: center;
}
.cast-grid img { height: 210px; }
.roster h2 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  margin: 10px 0 6px;
}
.book-frame {
  margin-top: 18px;
  background: var(--paper);
  border: var(--line);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.book-frame iframe {
  width: 100%;
  height: min(78vh, 820px);
  border: 0;
  background: #fff;
}

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.team article {
  background: var(--paper);
  text-align: center;
  padding: 18px 14px 16px;
  border: var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.team img {
  width: 140px;
  height: 140px;
  margin: 0 auto 10px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.team h3 { margin: 0 0 4px; font-family: var(--display); font-size: 26px; font-weight: 400; }
.team p { margin: 0; font-weight: 700; }
.partner {
  display: flex;
  justify-content: center;
  margin: 8px 0 22px;
  background: var(--header);
  border-radius: 12px;
  padding: 16px;
}
.partner img { width: min(420px, 100%); height: auto; }

.form {
  display: grid;
  gap: 14px;
}
label { font-weight: 800; display: grid; gap: 6px; }
input, textarea {
  font: inherit;
  padding: 10px 12px;
  border: var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.checks { display: flex; flex-wrap: wrap; gap: 10px 16px; font-weight: 700; }
.checks label { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.checks input { width: auto; }
button.send {
  justify-self: start;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  cursor: pointer;
}
button.send:hover { background: #c9962e; }
.form-note { color: var(--muted); font-size: 14px; }

.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.78);
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-frame { width: min(960px, 100%); background: #000; position: relative; }
.modal-frame video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.modal-close {
  position: absolute;
  top: -36px;
  right: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 760px) {
  html.has-snap { scroll-snap-type: none; }
  .news-grid, .sys-grid, .cast, .mode, .roster, .team, .foot-grid { grid-template-columns: 1fr; }
  .cast-grid { grid-template-columns: 1fr 1fr; }
  .cast-grid img { height: 170px; }
  .cast-grid h2 { font-size: 17px; }
  .specs { justify-self: center; text-align: center; }
  .hero {
    height: auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 96px 16px 24px;
  }
  .hero-bg { object-position: center center; }
  .hero-logo {
    position: absolute;
    left: 16px;
    top: 78px;
  }
  .hero-logo .logo-mark { font-size: 58px; }
  .hero-tag,
  .store-badges {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    max-width: none;
    margin: 0 0 12px;
    transform: none;
  }
  .store-badges { align-items: stretch; }
  .scroll-hint { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 22px 18px;
    background: var(--header);
    border-bottom: 1.5px solid rgba(226, 176, 67, 0.45);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a.nav-play { margin: 8px 0 0; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .cookie-actions { flex-wrap: wrap; }
  .site-header { position: fixed; }
}

.loader .logo-mark { animation: loader-glow 1.1s ease-in-out infinite alternate; }
.hero-logo { animation: hero-logo-in 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-tag { animation: hero-in 0.8s 0.16s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.store-badges { animation: hero-in 0.8s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.scroll-hint svg { animation: chevron 1.35s ease-in-out infinite; }
.play { animation: pulse 2.4s ease-out infinite; }

.roster img.portrait,
.cast img.portrait,
.cast-grid img { animation: floaty 4.6s ease-in-out infinite; }
.cast article:nth-child(2) img.portrait,
.roster article:nth-child(2) img.portrait,
.cast-grid article:nth-child(3n) img { animation-delay: -1.5s; }
.cast article:nth-child(3) img.portrait,
.roster article:nth-child(3) img.portrait,
.cast-grid article:nth-child(3n + 2) img { animation-delay: -3s; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-play-state: paused;
  animation-delay: var(--d, 0ms);
}
.reveal.is-in { animation-play-state: running; }
.reveal.settled { animation: none; opacity: 1; transform: none; }

.cast article,
.roster article,
.cast-grid article,
.sys-card,
.movie-card,
.store-badge,
.cta,
.nav a.nav-play,
.socials a {
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}
.cast article:hover,
.roster article:hover,
.cast-grid article:hover,
.sys-card:hover,
.cta:hover,
.nav a.nav-play:hover { transform: translateY(-6px); }
.movie-card img { transition: transform 0.55s ease; }
.movie-card:hover img { transform: scale(1.05); }
.socials a:hover { transform: translateY(-3px); }

@keyframes loader-glow {
  from { opacity: 0.45; }
  to { opacity: 1; }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-logo-in {
  from { opacity: 0; transform: translateY(16px) rotate(-7deg); }
  to { opacity: 1; transform: rotate(-3deg); }
}
@keyframes chevron {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(7px); opacity: 1; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 250, 243, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(255, 250, 243, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 250, 243, 0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .loader .logo-mark,
  .hero-bg,
  .hero-logo,
  .hero-tag,
  .store-badges,
  .scroll-hint svg,
  .play,
  .roster img.portrait,
  .cast img.portrait,
  .cast-grid img,
  .char-sheet { animation: none; }
}

.roster article,
.cast-grid article,
.cast article { cursor: pointer; }
.roster article:focus-visible,
.cast-grid article:focus-visible,
.cast article:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
body.char-open { overflow: hidden; }
.char-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(20, 16, 28, 0.72);
}
.char-modal[hidden] { display: none; }
.char-sheet {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 8px 22px;
  background: var(--paper);
  color: var(--ink);
  border: var(--line);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  padding: 18px 18px 22px;
  animation: sheet-in 0.38s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.char-sheet img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 92%, rgba(226, 176, 67, 0.5), transparent 58%),
    #efe4cf;
}
.char-sheet .kicker { margin-top: 8px; }
.char-sheet h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
  margin: 0 0 12px;
}
.char-copy p { margin: 0 0 12px; }
.char-copy p:last-child { margin-bottom: 0; }
.char-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.char-close:hover { color: var(--coral); }
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 700px) {
  .char-sheet { grid-template-columns: 1fr; }
  .char-sheet img { height: 220px; }
}

/* ---- Help bubble (Merlin) ---- */
button.ar-chat-btn{position:fixed;right:20px;bottom:20px;z-index:9000;width:58px;height:58px;border-radius:50%;border:2px solid var(--ink);background:var(--gold);color:var(--ink);font:28px/1 var(--display);cursor:pointer;box-shadow:0 6px 18px rgba(44,36,56,.35);overflow:hidden;transition:transform .2s}
button.ar-chat-btn:hover{transform:scale(1.07)}
.ar-chat-i{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;transition:transform .25s,opacity .25s}
.ar-chat-i.x{opacity:0;transform:rotate(-90deg) scale(.5);font-size:24px}
.ar-chat-btn.on .ar-chat-i.q{opacity:0;transform:rotate(90deg) scale(.5)}
.ar-chat-btn.on .ar-chat-i.x{opacity:1;transform:none}
.ar-chat{position:fixed;right:20px;bottom:90px;z-index:9000;width:350px;max-width:calc(100vw - 24px);height:min(540px,calc(100vh - 120px));display:flex;flex-direction:column;background:var(--paper);color:var(--ink);border:var(--line);border-radius:14px;overflow:hidden;font-family:var(--font);box-shadow:0 18px 40px rgba(44,36,56,.35);opacity:0;transform:translateY(16px) scale(.96);transform-origin:bottom right;pointer-events:none;transition:opacity .22s,transform .22s}
.ar-chat.open{opacity:1;transform:none;pointer-events:auto}
.ar-chat-h{display:flex;align-items:center;gap:10px;background:var(--header);color:var(--gold);padding:12px 14px;font:22px/1 var(--display)}
.ar-chat-av{width:32px;height:32px;border-radius:50%;background:var(--gold);color:var(--header);display:flex;align-items:center;justify-content:center;font-size:18px;border:2px solid var(--paper)}
.ar-chat-log{flex:1;overflow-y:auto;padding:12px 14px;font-size:14.5px;line-height:1.45;background:var(--cream)}
.ar-chat-m{margin:0 0 10px;padding:9px 12px;border-radius:12px 12px 12px 3px;background:var(--paper);border:1px solid rgba(44,36,56,.15);max-width:88%;animation:arIn .25s ease}
.ar-chat-m.u{background:var(--ink);color:var(--paper);margin-left:auto;border-radius:12px 12px 3px 12px}
.ar-chat-m b{display:block;font:15px var(--display);color:var(--coral);margin-bottom:3px}
.ar-chat-d{display:inline-block;margin-top:6px;color:var(--ink);background:var(--gold);border-radius:12px;padding:4px 10px;text-decoration:none;font-size:13px}
.ar-chat-typing i{display:inline-block;width:6px;height:6px;margin:0 2px;border-radius:50%;background:var(--muted);animation:arDot 1s infinite}
.ar-chat-typing i:nth-child(2){animation-delay:.15s}.ar-chat-typing i:nth-child(3){animation-delay:.3s}
.ar-chat-q{max-height:34%;overflow-y:auto;display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px;border-top:1px solid rgba(44,36,56,.15)}
.ar-chat-q button{background:var(--paper);color:var(--ink);border:1px solid var(--ink);border-radius:14px;padding:4px 10px;font:12.5px var(--font);cursor:pointer}
.ar-chat-q button:hover{background:var(--gold)}
.ar-chat-f{display:flex;border-top:var(--line)}
.ar-chat-f input{flex:1;min-width:0;border:0;padding:11px 12px;font:15px var(--font);background:var(--paper);color:var(--ink)}
.ar-chat-f button{border:0;background:var(--gold);color:var(--ink);padding:0 16px;font:16px var(--display);cursor:pointer}
@keyframes arIn{from{opacity:0;transform:translateY(6px)}}
@keyframes arDot{50%{transform:translateY(-4px);opacity:.4}}
@media (max-width:600px){.ar-chat{right:12px;bottom:84px}button.ar-chat-btn{right:12px;bottom:14px}}
/* keep back-to-top clear of the bubble */
.to-top{bottom:92px !important}

/* ---- Animated photo placeholders ---- */
.sys-card,.mode img{position:relative}
.sys-card img,.mode img{animation:arKen 14s ease-in-out infinite alternate}
.sys-card{overflow:hidden}
.sys-card::after,.mode::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 35%,rgba(255,240,200,.35) 50%,transparent 65%);background-size:250% 100%;z-index:3;animation:arShine 4.5s ease-in-out infinite}
.mode{position:relative;overflow:hidden}
.reveal{opacity:0;transform:translateY(24px) scale(.98);transition:opacity .7s ease,transform .7s ease}
.reveal.is-in{opacity:1;transform:none}
@keyframes arKen{from{transform:scale(1)}to{transform:scale(1.08) translate(-1.5%,-1%)}}
@keyframes arShine{0%{background-position:150% 0}60%,100%{background-position:-60% 0}}
@media (prefers-reduced-motion:reduce){.sys-card img,.mode img,.sys-card::after,.mode::before{animation:none}.reveal{opacity:1;transform:none}}

/* ---- Headings polish ---- */
.page h1{letter-spacing:.01em;text-wrap:balance;position:relative;padding-bottom:.35em}
.page h1::after{content:"";position:absolute;left:0;bottom:0;width:72px;height:4px;border-radius:2px;background:var(--gold)}
.sheet h2{text-wrap:balance;border-left:4px solid var(--gold);padding-left:.55em}
/* ---- Language picker ---- */
.lang-pick{margin-left:10px;background:transparent;color:var(--gold);border:1px solid var(--gold);border-radius:6px;padding:3px 6px;font:13px var(--font);cursor:pointer}
.lang-pick option{color:#222}

/* ---- Gallery ---- */
.gal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px;margin-top:24px}
.gal-grid.single{grid-template-columns:minmax(0,960px);justify-content:center}
.gal-item{position:relative;padding:0;border:var(--line);border-radius:12px;overflow:hidden;background:var(--ink);cursor:zoom-in;box-shadow:var(--shadow);opacity:0;transform:translateY(24px);transition:opacity .7s,transform .7s}
.gal-item.in{opacity:1;transform:none}
.gal-item img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;transition:transform .6s ease}
.gal-item:hover img{transform:scale(1.06)}
.gal-item span{position:absolute;left:0;right:0;bottom:0;padding:22px 14px 10px;color:var(--paper);font:18px var(--display);text-align:left;background:linear-gradient(transparent,rgba(36,30,48,.85));opacity:0;transform:translateY(8px);transition:.3s}
.gal-item:hover span,.gal-item:focus-visible span{opacity:1;transform:none}

/* Host test 2026-11-28: pro contact, type sheen, fuller motion */
@keyframes gold-sheen {
  0%, 100% { background-position: 120% 50%; }
  50% { background-position: -20% 50%; }
}
@keyframes rise-soft {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes drift {
  from { transform: scale(1.05); }
  to { transform: scale(1.13) translate3d(-2.4%, -1.6%, 0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.site-header .logo-mark,
.site-footer .logo-mark,
.hero-logo .logo-mark {
  background-image: linear-gradient(100deg, #e2b043 0%, #e2b043 36%, #fff6d2 48%, #f0c15a 54%, #c9842a 64%, #e2b043 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gold-sheen 7.5s ease-in-out infinite;
}
.page h1 {
  background-image: linear-gradient(100deg, #2c2438 0%, #2c2438 40%, #c9842a 48%, #fff1c2 52%, #e2b043 56%, #2c2438 66%, #2c2438 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gold-sheen 8s ease-in-out infinite;
}
.kicker {
  color: #d4654a;
  text-shadow: 0 1px 0 rgba(255, 252, 248, 0.6);
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: none;
  animation: rise-soft 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-play-state: paused;
  transition: none;
}
.reveal.is-in { animation-play-state: running; }
.cast article:hover,
.roster article:hover,
.cast-grid article:hover,
.sys-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(44, 36, 56, 0.16);
}
.pro-desk {
  position: relative;
  overflow: hidden;
  padding-left: 34px;
}
.pro-desk::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: linear-gradient(#e2b043, #d4654a);
}
.pro-form { gap: 16px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-as {
  border: 0;
  padding: 0;
  margin: 0;
}
.form-as legend {
  font-weight: 800;
  margin-bottom: 8px;
}
.pro-form > label,
.pro-form .form-row,
.pro-form .form-as,
.pro-form .send,
.pro-form .form-note {
  animation: rise-soft 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.pro-form > :nth-child(1) { animation-delay: 0.05s; }
.pro-form > :nth-child(2) { animation-delay: 0.1s; }
.pro-form > :nth-child(3) { animation-delay: 0.16s; }
.pro-form > :nth-child(4) { animation-delay: 0.22s; }
.pro-form > :nth-child(5) { animation-delay: 0.28s; }
.pro-form > :nth-child(6) { animation-delay: 0.34s; }
.pro-form input,
.pro-form textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.pro-form input:focus,
.pro-form textarea:focus {
  outline: none;
  border-color: #c9842a;
  box-shadow: 0 0 0 3px rgba(226, 176, 67, 0.45);
}
.pro-form .checks label {
  padding: 8px 12px;
  border: 1.5px solid rgba(44, 36, 56, 0.18);
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.pro-form .checks label:hover { transform: translateY(-2px); border-color: #e2b043; }
.pro-form .checks label:has(input:checked) {
  background: #fff6df;
  border-color: #c9842a;
}
button.send {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease;
}
button.send:hover { transform: translateY(-2px); background: #f0c15a; }
.form-status {
  margin: 0;
  font-weight: 800;
  color: #8a5a12;
}
@media (max-width: 760px) {
  .form-row { grid-template-columns: 1fr; }
  .pro-desk { padding-left: 22px; }
}
.cast h3,
.roster h2,
.cast-grid h2,
.char-sheet h2 {
  font-family: "Cinzel Decorative", "MedievalSharp", serif;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.15;
  background: none;
  color: #3a2a18;
  -webkit-text-fill-color: #3a2a18;
  animation: none;
  filter: none;
}
.cast h3 { font-size: 30px; text-align: center; }
.roster h2 { font-size: 32px; }
.cast-grid h2 { font-size: 22px; text-align: center; }
.char-sheet h2 { font-size: clamp(34px, 4vw, 48px); }
.cast h3::after,
.roster h2::after,
.cast-grid h2::after,
.char-sheet h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 7px;
  background: linear-gradient(90deg, transparent, #e2b043, #d4654a, transparent);
}
.cast h3::after,
.cast-grid h2::after { margin-left: auto; margin-right: auto; }
.hero-logo {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: var(--gold);
}
.sword-gleam {
  position: absolute;
  inset: -8px -12px;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 246, 210, 0.95) 50%, transparent 64%);
  background-size: 240% 100%;
  background-position: 140% 0;
  opacity: 0;
  pointer-events: none;
}
.hero-logo.is-drawn .sword-gleam {
  animation: sword-gleam 0.7s ease;
}
@keyframes sword-gleam {
  0% { opacity: 0; background-position: 140% 0; }
  25% { opacity: 1; }
  100% { opacity: 0; background-position: -40% 0; }
}
.hero-aside {
  position: absolute;
  z-index: 2;
  left: 48px;
  top: 268px;
  max-width: 340px;
  margin: 0;
  padding: 10px 14px;
  background: #f3e2c0;
  color: #3a2a18;
  border: 1.5px solid #8a5a12;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.community-side { display: flex; flex-direction: column; gap: 18px; }
.parchment {
  display: flex;
  min-height: 0;
  margin: 0;
  padding: 36px 28px 32px;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255, 248, 230, 0.55), transparent 28%),
    #f3e2c0;
  color: #3a2a18;
  border: 1.5px solid #8a5a12;
  border-radius: 12px;
  box-shadow: inset 0 0 0 6px rgba(138, 90, 18, 0.18), var(--shadow);
}
.parchment h2 {
  margin: 0;
  font-family: "Cinzel Decorative", "MedievalSharp", serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: #3a2a18;
}
.parchment p { margin: 0; font-size: 18px; }
.parchment-kicker {
  font-family: "Cinzel", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a5a12;
}
.parchment-date {
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: #8a5a12;
}
.parchment-link {
  align-self: flex-start;
  margin-top: 8px;
  color: #3a2a18;
  font-weight: 800;
  text-underline-offset: 3px;
}
.discord-widget.is-quiet { display: none; }
@media (max-width: 760px) {
  .hero-aside { left: 16px; top: 176px; max-width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo.is-drawn .sword-gleam { animation: none; opacity: 0; }
}
.cast .role,
.roster .role,
.char-sheet .kicker {
  font-family: "Cinzel", "MedievalSharp", serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@media (prefers-reduced-motion: reduce) {
  .site-header .logo-mark,
  .site-footer .logo-mark,
  .hero-logo .logo-mark,
  .page h1,
  .pro-form > label,
  .pro-form .form-row,
  .pro-form .form-as,
  .pro-form .send,
  .pro-form .form-note,
  .reveal {
    animation: none;
    filter: none;
    opacity: 1;
    transform: none;
  }
  .site-header .logo-mark,
  .site-footer .logo-mark,
  .hero-logo .logo-mark {
    background: none;
    color: var(--gold);
    -webkit-text-fill-color: currentColor;
  }
  .page h1 {
    background: none;
    color: var(--ink);
    -webkit-text-fill-color: currentColor;
  }
  .cast h3,
  .roster h2,
  .cast-grid h2,
  .char-sheet h2 {
    animation: none;
    filter: none;
    background: none;
    color: #3a2a18;
    -webkit-text-fill-color: currentColor;
  }
}
.lb{position:fixed;inset:0;z-index:9500;background:rgba(20,16,28,.92);display:flex;align-items:center;justify-content:center;animation:arIn .25s}
.lb[hidden]{display:none}
.lb figure{margin:0;max-width:92vw;text-align:center}
.lb img{max-width:92vw;max-height:82vh;border-radius:8px;box-shadow:0 20px 50px rgba(0,0,0,.6)}
.lb figcaption{color:var(--gold);font:20px var(--display);margin-top:10px}
.lb button{position:absolute;background:none;border:0;color:var(--paper);font-size:44px;cursor:pointer;padding:10px 16px}
.lb-x{top:10px;right:14px;font-size:30px!important}.lb-p{left:10px}.lb-n{right:10px}
.lb.one .lb-p,.lb.one .lb-n{display:none}
