/* =========================================================
   Yulgang – Halloween Monthly Event Landing
   ========================================================= */

:root {
  --night: #120c1a;
  --night-2: #0b0a0f;
  --ink: #1d130c;
  --ink-2: #4b3322;
  --ink-3: #7a5a40;
  --paper: #efdcb5;
  --paper-line: rgba(90, 50, 20, .28);

  --orange: #ff7a1a;
  --orange-2: #ff5400;
  --orange-soft: #ffb15c;
  --gold: #f2c14e;

  --radius: 14px;
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .55);

  --font-head: "Kanit", system-ui, sans-serif;
  --font-body: "Sarabun", system-ui, sans-serif;
  --topbar-h: 76px;

  --brush-clip: polygon(2% 12%, 9% 2%, 30% 6%, 52% 0, 74% 5%, 94% 1%, 100% 18%, 98% 52%, 100% 86%, 91% 100%, 68% 95%, 46% 100%, 24% 94%, 6% 99%, 0 82%, 2% 48%);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--topbar-h); }

body {
  background: var(--night-2);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: var(--font-head); }
img { max-width: 100%; }
.text-soft { color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn-orange {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.25rem;
  border: 0; border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-soft), var(--orange-2));
  color: #fff;
  font: 600 .98rem/1.2 var(--font-head);
  box-shadow: 0 6px 18px -6px rgba(255, 110, 20, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .2s ease, filter .2s ease;
}
.btn-orange:hover, .btn-orange:focus-visible { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }

.btn-brush {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem;
  border: 0;
  background: linear-gradient(90deg, #ffa034, var(--orange-2) 70%, #ff7a1a);
  color: #fff;
  font: 600 1.05rem/1.2 var(--font-head);
  text-shadow: 0 1px 0 rgba(120, 40, 0, .35);
  clip-path: var(--brush-clip);
  text-decoration: none;
  transition: filter .2s ease, transform .2s ease;
}
.btn-brush:hover, .btn-brush:focus-visible { filter: brightness(1.1) saturate(1.1); transform: translateY(-2px); color: #fff; }
[id^="ygpc-hlw-"] .bi { pointer-events: none; }
.btn-brush--sm { padding: .55rem 1.6rem; font-size: .95rem; }

.img-btn { display: inline-block; transition: transform .2s ease, filter .2s ease; }
.img-btn img { display: block; height: 66px; width: auto; }
.img-btn:hover, .img-btn:focus-visible { transform: translateY(-3px) scale(1.02); filter: drop-shadow(0 6px 16px rgba(255, 120, 30, .55)); }

/* ---------- Decorative helpers ---------- */
.deco { position: absolute; pointer-events: none; user-select: none; }
.deco--float { animation: float 5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-12px) rotate(2deg); }
}

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(180deg, rgba(8, 6, 12, .9), rgba(8, 6, 12, .55));
  border-bottom: 1px solid rgba(255, 150, 70, .18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .3s ease;
}
.topbar.is-scrolled { background: rgba(10, 8, 14, .96); }
.topbar .navbar { min-height: var(--topbar-h); padding: .4rem 0; }
.topbar .navbar-brand { padding: 0; }
.topbar-logo { height: 54px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.topbar-actions { gap: 1.4rem; align-items: center; }
.topbar-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: #f3e6d6; text-decoration: none;
  font: 500 .98rem/1 var(--font-head);
  transition: color .2s ease;
}
.topbar-link .bi { font-size: 1.1rem; }
.topbar-link:hover, .topbar-link:focus-visible { color: var(--orange-soft); }
.navbar-toggler { border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px; color: #fff; font-size: 1.6rem; padding: .1rem .5rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255, 122, 26, .35); }

@media (max-width: 767.98px) {
  :root { --topbar-h: 64px; }
  .topbar-logo { height: 44px; }
  .topbar-actions { gap: 0; padding: .5rem 0 1rem; align-items: stretch; }
  .topbar-link { padding: .8rem .25rem; border-bottom: 1px solid rgba(255, 255, 255, .08); width: 100%; }
  .topbar-actions .btn-orange { justify-content: center; margin-top: .9rem; width: 100%; padding: .75rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  min-height: min(100svh, 920px);
  padding: calc(var(--topbar-h) + 1.5rem) 0 7rem;
  background: var(--night) url("../img/hero-bg.webp") 62% center / cover no-repeat;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 6, 16, 0) 60%, rgba(12, 8, 16, .95) 100%);
}
.hero-inner { width: 100%; }
.hero-copy { position: relative; z-index: 2; }

.hero-copy { max-width: 600px; margin-inline: auto; }
@media (min-width: 992px) { .hero-copy { margin-left: 0; } }
.hero-logo { display: block; width: 210px; height: auto; margin: 0 auto .25rem; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }

.hero-title { margin: 0 0 1.4rem; line-height: 0; text-align: center; }
.hero-title img { width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .55)); }

.candy-list {
  list-style: none; padding: 0; margin: 0 0 1.5rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem;
  width: 100%;
}
.candy {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: .75rem .5rem .85rem;
  background: var(--paper) url("../img/paper.webp") center / 320px;
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 1px rgba(90, 50, 20, .35),
    inset 0 0 26px rgba(130, 70, 20, .5),
    0 10px 22px -8px rgba(0, 0, 0, .6);
  transition: transform .25s ease;
}
.candy:hover { transform: translateY(-4px) rotate(-1deg); }
.candy__img { height: 62px; width: auto; margin-bottom: .35rem; transform: rotate(-14deg); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); transition: transform .3s ease; }
.candy:hover .candy__img { transform: rotate(8deg) scale(1.08); }
.candy__name { font: 500 .85rem/1.3 var(--font-head); color: var(--ink-2); }
.candy__reward { font: 700 1.1rem/1.3 var(--font-head); color: var(--ink); }

.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: center; }
.hero-cta .img-btn img { width: 100%; height: auto; }

/* character group sits centered in the right column (large screens only) */
.hero-visual { position: relative; z-index: 1; justify-content: center; align-items: center; }
/* box = the video's 720×960 frame; characters fill ~92% of its height,
   so they stay the same size as the old still image */
.hero-chars {
  position: relative;
  width: min(69svh, 41.25vw, 638px, 100%);
  aspect-ratio: 3 / 4;
  pointer-events: none;
  user-select: none;
}
.hero-chars__video { position: absolute; inset: 0; width: 100%; height: 100%; }
/* still sits exactly where the characters are in the video frame (137,34 → 599,918 of 720×960) */
.hero-chars__still {
  position: absolute;
  left: 19.03%; top: 3.54%; width: 64.3%; height: 92.2%;
  transition: opacity .4s ease;
}
.hero-chars:has(.is-live) .hero-chars__still { opacity: 0; }

.hero-ghost { width: 96px; z-index: 1; opacity: .95; }
.hero-ghost--l { left: 2%; bottom: 20%; }
.hero-ghost--r { right: 2.5%; top: 26%; width: 84px; animation-delay: 1.5s; }

@media (max-width: 1199.98px) {
  .hero-ghost { display: none; }
}
@media (max-width: 991.98px) {
  .hero { min-height: 0; padding-bottom: 5rem; background-position: 58% center; }
  .hero::before { background: linear-gradient(180deg, rgba(10, 6, 16, .7) 0%, rgba(10, 6, 16, .35) 45%, rgba(12, 8, 16, .9) 100%); }
}
@media (max-width: 575.98px) {
  .hero { padding-top: calc(var(--topbar-h) + .75rem); padding-bottom: 3.5rem; }
  .hero-logo { width: 150px; }
  .candy-list { gap: .5rem; margin-bottom: 1.25rem; }
  .candy { padding: .55rem .25rem .6rem; }
  .candy__img { height: 46px; }
  .candy__name { font-size: .72rem; }
  .candy__reward { font-size: .92rem; }
  .hero-cta { gap: .5rem; }
}

/* ---------- Paper zone (Highlight + News) ---------- */
.paper-zone {
  position: relative;
  background: var(--paper) url("../img/paper.webp") center top / 1024px repeat;
  overflow-x: clip;
}
.paper-edge {
  position: absolute; left: 0;
  width: 100%; height: auto;
  pointer-events: none; user-select: none;
  z-index: 1;
}
.paper-edge--top    { top: 0; }
.paper-edge--bottom { bottom: -1px; }

.section { position: relative; z-index: 2; }
.highlight { padding: clamp(110px, 13vw, 190px) 0 4rem; }
.news { padding: 3rem 0 clamp(120px, 17vw, 270px); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}
.section-ornament {order: 3;width: min(850px, 86%);height: auto;margin-top: .6rem;}
.eyebrow {
  margin: 0 0 .15rem;
  font: 600 .95rem/1 var(--font-head);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange-2);
}
.section-title {
  display: inline-flex; align-items: center; gap: .9rem;
  margin: 0;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  line-height: 1.25;
  color: var(--ink);
}
.title-bat { width: clamp(46px, 5vw, 70px); height: auto; }
.title-bat--r { transform: scaleX(-1); }

/* ---------- Highlight cards ---------- */
.event-card {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  padding: 46px 50px 52px;
  transition: transform .3s ease, filter .3s ease;
}
.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 48px solid transparent;
  border-image: url("../img/frame-card.webp") 250 fill / 56px stretch;
  filter: drop-shadow(0 16px 22px rgba(60, 30, 5, .35));
}
.event-card > * { position: relative; z-index: 1; }
.event-card:hover { transform: translateY(-6px); }

.event-card__talisman {
  position: absolute !important;
  z-index: 3 !important;
  top: 5px;
  right: 8%;
  width: 42px;
  height: auto;
  transform: rotate(8deg);
  transform-origin: top center;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3));
  animation: sway 4s ease-in-out infinite;
}
@keyframes sway { 0%, 100% { rotate: -4deg; } 50% { rotate: 5deg; } }

.event-card__ghost {
  position: absolute !important; z-index: 3 !important;
  right: -14px; bottom: -18px;
  width: 70px; height: auto;
}

.event-card__media {
  position: relative;
  border: 2px solid #2b1c12;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  background: #1a1020;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5);
}
.event-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.event-card:hover .event-card__img { transform: scale(1.06); }

.event-card__badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .8rem .3rem .5rem;
  background: rgba(22, 14, 10, .92);
  border: 2px solid #c98a44;
  border-radius: 999px;
  color: #fff;
  font: 600 .88rem/1 var(--font-head);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
}
.event-card__badge img { height: 20px; width: auto; }
.event-card__badge .bi { color: var(--orange-soft); font-size: 1rem; }

.event-card__body { flex: 1; display: flex; flex-direction: column; padding-top: 1.1rem; }
.event-card__no { font: italic 700 1.3rem/1 var(--font-head); color: var(--orange-2); margin-bottom: .3rem; }
.event-card__title { font-weight: 700; font-style: italic; font-size: clamp(1.45rem, 2.2vw, 1.8rem); line-height: 1.25; margin-bottom: .4rem; color: var(--ink); }
.event-card__lead { font-size: 1.08rem; color: var(--ink-2); margin-bottom: 1.4rem; }
.event-card__lead strong, .event-card__points strong { color: var(--ink); font-weight: 600; }
.event-card__points { list-style: none; padding: 0; margin: 0 0 1.4rem; color: var(--ink-2); font-size: .98rem; }
.event-card__points li { position: relative; padding-left: 1.2rem; margin-bottom: .3rem; line-height: 1.5; }
.event-card__points li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffb45c, var(--orange-2));
  box-shadow: 0 0 0 2px rgba(90, 40, 10, .25);
}
.event-card__btn { margin-top: auto; width: 100%; }

/* locked state */
.event-card.is-locked .event-card__btn,
.event-card.is-locked .event-card__btn:disabled {
  background: rgba(255, 246, 228, .65);
  color: var(--ink-2);
  border: 1.5px solid #d98a4e;
  border-radius: 999px;
  clip-path: none;
  text-shadow: none;
  font-weight: 500;
  cursor: not-allowed;
  transform: none;
  filter: none;
}
.event-card.is-locked .event-card__btn .bi { color: var(--orange-2); }

@media (max-width: 575.98px) {
  .highlight { padding-top: 80px; }
  .event-card { padding: 40px 42px 46px; }
  .event-card::before { border-width: 42px; border-image-width: 42px; }
}

/* ---------- News slider ---------- */
.news-talisman { width: 54px; z-index: 0; animation: sway 5s ease-in-out infinite; }
.news-talisman--l { left: 5%; top: 30%; width: 64px; }
.news-talisman--r { right: 4%; top: 52%; }
@media (max-width: 1199.98px) { .news-talisman { display: none; } }

.news-slider { position: relative; user-select: none; outline: none; }
.news-slider:focus-visible { outline: 2px dashed var(--orange-2); outline-offset: 8px; }

.news-slider__stage {
  display: grid;
  align-items: center;
  touch-action: pan-y;
}
.news-slide {
  grid-area: 1 / 1;
  justify-self: center;
  width: 70%;
  display: block;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transform: scale(.7);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .6s ease, filter .6s ease;
}
.news-slide.is-active { opacity: 1; z-index: 3; pointer-events: auto; transform: none; }
.news-slide.is-prev,
.news-slide.is-next { opacity: 1; z-index: 2; pointer-events: auto; cursor: pointer; filter: brightness(.82) saturate(.9); }
.news-slide.is-prev { transform: translateX(-38%) scale(.8); }
.news-slide.is-next { transform: translateX(38%) scale(.8); }

.news-slide__frame {position: relative;padding: 56px;}
.news-slide__frame::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border: 72px solid transparent;
  border-image: url("../img/frame-parchment.webp") 200 fill / 72px stretch;
  filter: drop-shadow(0 18px 24px rgba(40, 20, 5, .45));
}
.news-slide__frame > * { position: relative; z-index: 1; }
.news-slide__img {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 2px rgba(60, 30, 10, .5);
  transition: filter .3s ease;
}
.news-slide.is-active:hover .news-slide__img { filter: brightness(1.08); }

/* pumpkin arrows: normal + glowing hover art stacked, crossfaded on hover */
.news-slider__arrow {
  position: absolute; top: calc(50% - 1.6rem); z-index: 5;
  width: 104px; aspect-ratio: 240 / 205;
  padding: 0; border: 0; background: none;
  transform: translateY(-50%);
  transition: transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.news-slider__arrow-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  filter: drop-shadow(0 8px 12px rgba(40, 20, 5, .35));
  transition: opacity .25s ease;
  pointer-events: none;
}
.news-slider__arrow-img--hover { opacity: 0; }
.news-slider__arrow:hover .news-slider__arrow-img--hover,
.news-slider__arrow:focus-visible .news-slider__arrow-img--hover { opacity: 1; }
.news-slider__arrow:hover { transform: translateY(-50%) scale(1.06); }
.news-slider__arrow:active { transform: translateY(-50%) scale(.92); }
.news-slider__arrow:focus-visible { outline: none; }
.news-slider__arrow--prev { left: 3%; }
.news-slider__arrow--next { right: 3%; }

.news-slider__bullets { display: flex; justify-content: center; gap: .55rem; margin-top: 1.6rem; }
.news-slider__bullet {
  width: 11px; height: 11px; padding: 0;
  border: 0; border-radius: 999px;
  background: rgba(60, 35, 15, .3);
  transition: width .3s ease, background .3s ease;
}
.news-slider__bullet.is-active { width: 30px; background: linear-gradient(90deg, var(--orange-2) 55%, #16100c 55%); }
.news-slider__bullet:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 3px; }

@media (max-width: 991.98px) {
  .news-slide { width: 80%; }
  .news-slide.is-prev { transform: translateX(-24%) scale(.84); }
  .news-slide.is-next { transform: translateX(24%) scale(.84); }
  .news-slider__arrow--prev { left: 0; }
  .news-slider__arrow--next { right: 0; }
}
@media (max-width: 575.98px) {
  .section-title { font-size: 1.55rem; gap: .5rem; }
  .title-bat { width: 38px; }
  .eyebrow { font-size: .82rem; }
  .news { padding-top: 2rem; }
  .section-head { margin-bottom: 2rem; }
  .news-slide { width: 90%; }
  .news-slide.is-prev { transform: translateX(-12%) scale(.88); }
  .news-slide.is-next { transform: translateX(12%) scale(.88); }
  .news-slider__arrow { width: 64px; top: calc(50% - 1.3rem); }
  .news-slider__arrow--prev { left: -8px; }
  .news-slider__arrow--next { right: -8px; }
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding: 2.5rem 0 2rem;
  background: var(--night-2);
  color: #cbbfb1;
}
.footer hr { border-color: rgba(255, 255, 255, .14); opacity: 1; margin: 1.75rem 0 1.4rem; }
.footer-logos { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.footer-ci { display: block; width: auto; height: 45px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-copy { color: #a99c8e; }

@media (max-width: 991.98px) {
  .footer-logos { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 767.98px) {
  .footer { padding-bottom: 8.5rem; } /* room for floating costume */
}

/* ---------- Floating social (left middle) ---------- */
.float-social {
  position: fixed; left: 0; top: 50%; z-index: 1030;
  display: flex; flex-direction: column;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.float-social__item {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  font-size: 1.3rem; color: #1b1b22; text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.float-social__item + .float-social__item { border-top: 1px solid #eee; }
.float-social__item:hover, .float-social__item:focus-visible { background: var(--orange-2); color: #fff; }
@media (max-width: 575.98px) {
  .float-social { border-radius: 0 10px 10px 0; }
  .float-social__item { width: 38px; height: 40px; font-size: 1.05rem; }
}

/* ---------- Floating costume (right bottom) ---------- */
.float-costume {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1030;
  width: 128px;
  padding: .45rem .45rem .5rem;
  background: linear-gradient(180deg, #2a1830, #150d18);
  border: 2px solid #e2873c;
  border-radius: 16px;
  box-shadow: 0 0 0 4px rgba(255, 120, 30, .15), 0 14px 30px -10px rgba(0, 0, 0, .6);
  animation: costume-in .6s cubic-bezier(.2, .7, .2, 1) both .8s, glow 2.8s ease-in-out infinite 1.5s;
}
.float-costume.is-hidden { display: none; }
.float-costume__link { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: center; text-decoration: none; color: inherit; }
.float-costume__thumb {
  position: relative; display: block;
  aspect-ratio: 1; overflow: hidden;
  border-radius: 10px;
  background: url("../img/hero-bg.webp") 70% 30% / cover;
}
.float-costume__thumb img {
  position: absolute; left: 50%; top: 4%;
  width: 78%; max-width: none;
  transform: translateX(-46%);
  transition: transform .35s ease;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5));
}
.float-costume__link:hover .float-costume__thumb img { transform: translateX(-46%) scale(1.08); }
.float-costume__label { display: block; margin-top: .4rem; font: 600 .8rem/1.2 var(--font-head); color: #ffd9a8; pointer-events: none; }
.float-costume__close {
  position: absolute; top: -11px; right: -11px; z-index: 1;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  padding: 0; border: 2px solid #fff; border-radius: 50%;
  background: var(--orange-2); color: #fff;
  font-size: .7rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .4);
}
.float-costume__close:hover { background: #d94400; }

@keyframes costume-in {
  from { opacity: 0; transform: translateY(20px) scale(.9); }
  to   { opacity: 1; transform: none; }
}
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 120, 30, .15), 0 14px 30px -10px rgba(0, 0, 0, .6); }
  50%      { box-shadow: 0 0 0 7px rgba(255, 120, 30, .28), 0 14px 30px -10px rgba(0, 0, 0, .6); }
}
@media (max-width: 575.98px) {
  .float-costume { width: 96px; right: .75rem; bottom: .75rem; padding: .35rem; }
  .float-costume__label { font-size: .68rem; }
}

/* ---------- Modal ---------- */
.modal-content {
  border: 2px solid #c98a44;
  border-radius: var(--radius);
  background: var(--paper) url("../img/paper.webp") center / 700px;
  color: var(--ink);
}
.modal-header, .modal-footer { border-color: var(--paper-line); }
.modal-title { font-weight: 700; font-style: italic; }
.modal-body img.detail-img {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  border-radius: 8px; border: 2px solid #2b1c12;
  margin-bottom: 1.1rem;
}
.modal-body h6 { font-family: var(--font-head); font-weight: 600; color: var(--orange-2); margin-top: 1rem; }
.modal-body ul { padding-left: 1.2rem; }

/* ---------- Loading screen ---------- */
/* shown only while <html>.is-loading (set in <head>); lifted by animations.js */
.loader { display: none; }
.is-loading, .is-loading body { overflow: hidden; }
.is-loading .loader {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 45%, #2a1638 0%, var(--night) 55%, var(--night-2) 100%);
  color: #fff;
  transition: opacity .5s ease, visibility .5s;
}
.is-loading.loader-out .loader { opacity: 0; visibility: hidden; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.loader__ghost { width: 110px; height: auto; animation: float 2.4s ease-in-out infinite; filter: drop-shadow(0 10px 22px rgba(255, 120, 30, .35)); }
.loader__text { margin: 0; font: 600 1.15rem/1.3 var(--font-head); color: var(--orange-soft); letter-spacing: .02em; }
.loader__dots::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: loader-dots 1.2s steps(4, end) infinite; }
@keyframes loader-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }
.loader__bar { width: min(240px, 60vw); height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.loader__fill { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--orange-2)); transform: scaleX(0); transform-origin: left center; transition: transform .35s ease; }
.loader__pct { font: 500 .85rem/1 var(--font-head); color: rgba(255, 255, 255, .55); }
/* the costume pop-in waits for the page to be revealed */
.is-loading .float-costume { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
