/* =====================================================================
   ANIME PAGE — announcement poster
   Dark plum night, magenta title, gold details.
   ===================================================================== */
:root {
  --night: #12060f;
  --plum: #2a0d2e;
  --magenta: #e3268f;
  --pink: #ff8cc6;
  --gold: #e9c98a;
  --text: #f7e9f1;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 0%, rgba(227, 38, 143, 0.28), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(120, 40, 160, 0.35), transparent 50%),
    var(--night);
  overflow-x: hidden;
}

/* ---------- topbar (same layout as the other pages) ---------- */
.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 60px 12px;
}

.logo-link {
  color: inherit;
  text-decoration: none;
}

.logo {
  display: flex;
  gap: 10px;
  align-items: center;
}

.logo .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #c77dff, #e0aaff, #f4acb7, #efcfe3);
}

.logo .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}

.logo-sub {
  font-size: 12px;
  color: var(--pink);
}

.menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
  transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--pink);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.auth {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn.primary {
  border: none;
  background: linear-gradient(90deg, var(--magenta), #a53bd8);
  color: #fff;
}

main {
  position: relative;
  z-index: 2;
  padding: 10px 60px 60px;
}

/* ---------- the poster ---------- */
.poster {
  position: relative;
  min-height: 940px;
  padding: 30px 46px 40px;
  border: 1px solid rgba(233, 201, 138, 0.55);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(115deg, #1a0a2c 0%, #2c1146 38%, #5a2a86 70%, #b79be0 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* pale light coming from the top right, like a tall window */
.poster-light {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 96% 8%, rgba(255, 255, 255, 0.85), rgba(214, 190, 255, 0.45) 22%, transparent 48%),
    repeating-linear-gradient(100deg, transparent 0 90px, rgba(255, 255, 255, 0.06) 90px 94px),
    linear-gradient(0deg, rgba(20, 6, 32, 0.92) 0%, transparent 34%),
    linear-gradient(90deg, rgba(20, 6, 32, 0.85) 0%, transparent 52%);
}

/* Penelope, large, on the right. Her dress runs out of the poster. */
.poster-penelope {
  position: absolute;
  z-index: 1;
  right: -1%;
  top: -7%;
  height: 128%;
  filter: drop-shadow(0 0 30px rgba(20, 6, 32, 0.55));
}

/* the palace, bottom right, melting into the poster */
.poster-palace {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 50%;
  height: 36%;
  background: url("/img/anime/palace.jpg") center bottom / cover no-repeat;
  filter: hue-rotate(-38deg) saturate(0.85) brightness(0.8);
  -webkit-mask-image: linear-gradient(0deg, #000 45%, transparent 100%), linear-gradient(270deg, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(0deg, #000 45%, transparent 100%), linear-gradient(270deg, #000 55%, transparent 100%);
  mask-composite: intersect;
}

.tagline {
  position: relative;
  z-index: 3;
  width: min(54%, 640px);
  margin: 0 0 18px;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(12px, 1.15vw, 17px);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.7;
  text-align: center;
  text-transform: uppercase;
  color: #f1e6ff;
}

.tagline em {
  font-style: normal;
  font-weight: 700;
  color: #ff5fb0;
}

.poster-main {
  position: relative;
  z-index: 3;
  width: min(54%, 640px);
}

/* five stand cards in a row */
.targets {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.targets li {
  flex: 1;
}

.targets a {
  display: block;
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s;
}

.targets a:hover {
  transform: translateY(-8px);
}

.targets img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(10, 2, 20, 0.6);
}

.targets a:hover img {
  box-shadow: 0 14px 28px rgba(255, 95, 176, 0.55);
}

.targets span {
  display: block;
  margin-top: 7px;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(9px, 0.85vw, 13px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  color: var(--gold);
}

/* the title: stacked and centred, white melting into pink */
.title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Cinzel Decorative", "Cinzel", Georgia, serif;
  font-weight: 900;
  line-height: 0.92;
  text-align: center;
  text-transform: uppercase;
  filter: drop-shadow(0 0 16px rgba(255, 95, 176, 0.75)) drop-shadow(0 4px 2px rgba(10, 2, 20, 0.7));
}

.t-big {
  font-size: clamp(44px, 6.4vw, 100px);
  background: linear-gradient(180deg, #fff 30%, #ffc3e2 62%, #ff7fc0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.t-small {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin: 0.25em 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(14px, 1.7vw, 26px);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #ffd9ee;
}

.t-small::before,
.t-small::after {
  content: "";
  width: 2.2em;
  height: 1px;
  background: currentColor;
}

.t-die i {
  margin-right: 0.12em;
  font-family: "Segoe UI Symbol", serif;
  font-size: 0.5em;
  font-style: normal;
  vertical-align: 0.25em;
  -webkit-text-fill-color: #ff5fb0;
}

.ribbon {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  padding: 8px 30px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(11px, 1.05vw, 15px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #7d0f3f, #b0164f, #7d0f3f);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
}

/* lower part: hopes box, Penelope blurb, paper note */
.lower {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  margin-top: 26px;
  align-items: start;
}

.hopes-box {
  padding: 16px 18px;
  border: 1px solid var(--gold);
  outline: 1px solid rgba(233, 201, 138, 0.35);
  outline-offset: 4px;
  background: rgba(14, 5, 22, 0.88);
}

.hopes-box h2,
.blurb h2 {
  margin: 0 0 12px;
  font-family: "Cinzel", Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.hopes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.hopes b {
  display: inline-block;
  width: 24px;
  margin-right: 8px;
  font-weight: 400;
  text-align: center;
  color: var(--gold);
}

.blurb h2 {
  color: #ff8cc6;
}

.blurb h2 i {
  font-style: normal;
}

.blurb p {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.55;
  text-shadow: 0 1px 6px rgba(10, 2, 20, 0.9);
}

.panel-link {
  font-weight: 600;
  font-size: 13px;
  color: #ff8cc6;
  text-decoration: none;
}

.panel-link:hover {
  text-decoration: underline;
}

/* torn paper note */
.note {
  width: fit-content;
  margin: 20px 0 0;
  padding: 14px 20px 16px;
  font-family: "Cinzel", Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.55;
  text-transform: uppercase;
  color: #2a1420;
  background: linear-gradient(160deg, #f6ead9, #e2cfb6);
  clip-path: polygon(0 6%, 8% 0, 22% 5%, 40% 0, 61% 4%, 80% 0, 100% 7%, 97% 52%, 100% 94%, 82% 100%, 60% 95%, 38% 100%, 17% 96%, 2% 100%, 3% 50%);
  transform: rotate(-3deg);
}

.note strong {
  color: #b0164f;
}

/* plaque on the right */
.badge {
  position: absolute;
  z-index: 3;
  right: 3%;
  top: 56%;
  padding: 16px 26px 14px;
  border: 1px solid var(--gold);
  outline: 1px solid rgba(233, 201, 138, 0.5);
  outline-offset: 4px;
  font-family: "Cinzel", Georgia, serif;
  text-align: center;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(14, 5, 22, 0.9);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.badge span {
  display: block;
}

.badge-top {
  font-size: clamp(12px, 1.1vw, 16px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.badge-big {
  margin-top: 4px;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 700;
  color: #fff;
}

/* ---------- facts ---------- */
.facts {
  margin-top: 24px;
  padding: 22px 24px;
  border-top: 1px solid rgba(233, 201, 138, 0.35);
}

.facts h2 {
  margin: 0 0 16px;
  font-family: "Cinzel", Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.facts dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 28px;
  margin: 0;
}

.facts dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink);
}

.facts dd {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 500;
}

/* ---------- petals ---------- */
.petals {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.petals span {
  position: absolute;
  top: -5%;
  width: 14px;
  height: 20px;
  border-radius: 80% 0 80% 0;
  background: linear-gradient(135deg, #ff9fd0, #c2187a);
  opacity: 0.75;
  animation: fall 12s linear infinite;
}

.petals span:nth-child(1) { left: 4%; animation-duration: 13s; }
.petals span:nth-child(2) { left: 13%; animation-duration: 10s; animation-delay: -4s; }
.petals span:nth-child(3) { left: 22%; animation-duration: 15s; animation-delay: -8s; }
.petals span:nth-child(4) { left: 31%; animation-duration: 11s; animation-delay: -2s; }
.petals span:nth-child(5) { left: 40%; animation-duration: 14s; animation-delay: -6s; }
.petals span:nth-child(6) { left: 49%; animation-duration: 12s; animation-delay: -10s; }
.petals span:nth-child(7) { left: 58%; animation-duration: 16s; animation-delay: -3s; }
.petals span:nth-child(8) { left: 67%; animation-duration: 10s; animation-delay: -7s; }
.petals span:nth-child(9) { left: 76%; animation-duration: 13s; animation-delay: -1s; }
.petals span:nth-child(10) { left: 85%; animation-duration: 15s; animation-delay: -9s; }
.petals span:nth-child(11) { left: 92%; animation-duration: 11s; animation-delay: -5s; }
.petals span:nth-child(12) { left: 97%; animation-duration: 14s; animation-delay: -11s; }

@keyframes fall {
  to {
    transform: translate(-80px, 110vh) rotate(540deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .petals {
    display: none;
  }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 18px 8px;
  }

  .menu {
    position: static;
    transform: none;
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 24px;
  }

  main {
    padding: 8px 14px 40px;
  }

  .facts dl {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- small windows: the poster keeps its large-screen layout ----------
   /anime/anime.js shrinks the whole poster like a picture (zoom) instead of
   re-arranging it. Sizes below are the large-screen sizes, in fixed pixels. */
.poster.is-scaled .t-big { font-size: 70px; }
.poster.is-scaled .t-small { font-size: 19px; }
.poster.is-scaled .tagline { font-size: 12.6px; }
.poster.is-scaled .ribbon { font-size: 11.5px; }
.poster.is-scaled .targets span { font-size: 9.5px; }
.poster.is-scaled .badge-top { font-size: 12px; }
.poster.is-scaled .badge-big { font-size: 22px; }

/* on phones the small texts leave the poster and sit under it, full size */
.poster.without-lower {
  min-height: 720px;
}

.lower.is-out {
  grid-template-columns: 1fr;
  margin-top: 18px;
}
