/* 盛宴 · 角色子页 */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Noto+Serif+SC:wght@400;600;700&display=swap");

:root {
  --ink: #120f0a;
  --gold: #c9a227;
  --paper: #ebe2c9;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  min-height: 100%;
  background: var(--ink);
  color: #f2ead8;
  font-family: "Noto Serif SC", "Songti SC", serif;
  -webkit-font-smoothing: antialiased;
}

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

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

.page__bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(61, 74, 46, 0.35), transparent 50%),
    linear-gradient(165deg, #1a1610 0%, #0d0b08 55%, #16120c 100%);
  z-index: 0;
}

.page__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/bg1.png");
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  filter: grayscale(0.2) contrast(1.05);
  mix-blend-mode: soft-light;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 3vw, 1.6rem) clamp(1.2rem, 4vw, 2.5rem);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  color: rgba(242, 234, 216, 0.78);
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.back::before {
  content: "←";
  font-family: "Cinzel", serif;
}

.back:hover {
  color: #f7efd6;
  border-color: var(--gold);
}

.topbar__mark {
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: rgba(201, 162, 39, 0.85);
}

/* —— 鸣谢 —— */
.thanks {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 2.4rem));
  margin: 0 auto clamp(0.6rem, 2vw, 1rem);
  padding: 0.85rem 1.1rem;
  text-align: center;
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: rgba(12, 14, 10, 0.4);
  backdrop-filter: blur(6px);
  animation: fade-up 0.7s var(--ease) both;
}

.thanks__label {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.thanks__text,
.thanks__url {
  font-size: clamp(0.82rem, 1.5vw, 0.92rem);
  line-height: 1.7;
  color: rgba(242, 234, 216, 0.72);
}

.thanks__url {
  margin-top: 0.25rem;
  word-break: break-all;
}

.thanks__link {
  color: rgba(201, 162, 39, 0.95);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  transition: color 0.25s, border-color 0.25s;
}

.thanks__link:hover,
.thanks__link:focus-visible {
  color: #f7efd6;
  border-color: var(--gold);
  outline: none;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  animation: fade-up 0.9s var(--ease) both;
}

.hero__figure {
  position: relative;
  width: min(72vw, 420px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle at center,
    #efe6cf 0%,
    #e4d7b4 52%,
    rgba(228, 215, 180, 0.35) 68%,
    transparent 78%
  );
}

.hero__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow:
    inset 0 0 60px rgba(201, 162, 39, 0.08),
    0 0 80px rgba(0, 0, 0, 0.4);
}

.hero__ring::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(201, 162, 39, 0.22);
  animation: spin 40s linear infinite;
}

.hero__img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
  animation: float 5.5s ease-in-out infinite;
}

.hero__copy {
  margin-top: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
  max-width: 28rem;
}

.hero__title {
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: #f7efd6;
  text-shadow: 0 0 28px rgba(201, 162, 39, 0.3);
}

.hero__role {
  margin-top: 0.55rem;
  font-size: clamp(0.78rem, 1.5vw, 0.92rem);
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: var(--gold);
}

.hero__desc {
  margin-top: 1rem;
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  line-height: 1.85;
  color: rgba(242, 234, 216, 0.72);
}

/* —— 机制说明区 —— */
.mechanic {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 2.4rem));
  margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  background: rgba(12, 14, 10, 0.55);
  border: 1px solid rgba(201, 162, 39, 0.28);
  backdrop-filter: blur(8px);
  animation: fade-up 0.9s var(--ease) 0.15s both;
}

.mechanic__title {
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-align: center;
  color: #f7efd6;
  margin-bottom: 1rem;
}

.mechanic__media {
  position: relative;
  border: 1px solid rgba(201, 162, 39, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.mechanic__figure {
  display: block;
  width: 100%;
  height: auto;
}

.mechanic__practice {
  position: absolute;
  left: 50%;
  bottom: clamp(0.8rem, 3vw, 1.4rem);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(0.88rem, 1.8vw, 1.05rem);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: #f7efd6;
  background: linear-gradient(180deg, rgba(40, 72, 36, 0.92), rgba(18, 28, 14, 0.94));
  border: 1px solid rgba(140, 200, 110, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(90, 160, 80, 0.25);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  white-space: nowrap;
}

.mechanic__practice:hover,
.mechanic__practice:focus-visible {
  transform: translateX(-50%) translateY(-3px);
  border-color: rgba(180, 230, 140, 0.85);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 14px 36px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(120, 200, 100, 0.4);
  outline: none;
}

.mechanic__rules {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.95rem;
}

.mechanic__item {
  display: grid;
  gap: 0.35rem;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(90, 160, 80, 0.55);
}

.mechanic__label {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--gold);
}

.mechanic__text {
  font-size: clamp(0.88rem, 1.6vw, 0.98rem);
  line-height: 1.85;
  color: rgba(242, 234, 216, 0.78);
}

.foot {
  position: relative;
  z-index: 2;
  padding: 1.2rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(242, 234, 216, 0.35);
}

/* 角色主题微差 */
.theme-raphael .page__bg {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(90, 160, 80, 0.16), transparent 55%),
    linear-gradient(165deg, #12160f 0%, #0d0b08 60%, #141810 100%);
}

.theme-uriel .page__bg {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(120, 70, 160, 0.14), transparent 55%),
    linear-gradient(165deg, #160f18 0%, #0d0b08 60%, #141018 100%);
}

.theme-michel .mechanic__item {
  border-left-color: rgba(180, 70, 75, 0.55);
}

.theme-michel .mechanic__practice {
  background: linear-gradient(180deg, rgba(96, 36, 40, 0.92), rgba(36, 14, 16, 0.94));
  border-color: rgba(200, 90, 90, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(160, 50, 55, 0.3);
}

.theme-michel .mechanic__practice:hover,
.theme-michel .mechanic__practice:focus-visible {
  border-color: rgba(240, 140, 140, 0.85);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 14px 36px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(200, 80, 85, 0.45);
}

.theme-uriel .mechanic__item {
  border-left-color: rgba(155, 95, 212, 0.55);
}

.theme-uriel .mechanic__practice {
  background: linear-gradient(180deg, rgba(72, 40, 96, 0.92), rgba(28, 14, 36, 0.94));
  border-color: rgba(155, 95, 212, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(120, 70, 160, 0.3);
}

.theme-uriel .mechanic__practice:hover,
.theme-uriel .mechanic__practice:focus-visible {
  border-color: rgba(200, 150, 255, 0.85);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 14px 36px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(155, 95, 212, 0.45);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero__img,
  .hero__ring::before {
    animation: none !important;
  }
}
