@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Noto+Serif+TC:wght@700;900&display=swap");

:root {
  --void: #07060d;
  --obsidian: #111019;
  --stone: #1e1b22;
  --rune: #7b42ff;
  --rune-bright: #b991ff;
  --gold: #d7a849;
  --ember: #ec6b30;
  --fel: #79f27a;
  --text: #f6eddc;
  --muted: #b9afc6;
  --shadow: rgba(0, 0, 0, 0.62);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  width: 100%;
  background: var(--void);
}

body {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  font-family: "Cinzel", "Trajan Pro", "Microsoft JhengHei", "Microsoft YaHei",
    "Noto Serif TC", Georgia, serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12%, rgba(123, 66, 255, 0.34), transparent 34rem),
    radial-gradient(circle at 12% 42%, rgba(121, 242, 122, 0.14), transparent 22rem),
    radial-gradient(circle at 88% 56%, rgba(236, 107, 48, 0.13), transparent 24rem),
    linear-gradient(180deg, #0a0710 0%, #100d16 42%, #050408 100%);
}

button {
  font: inherit;
}

.gallery-app {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(390px, 1fr) auto auto;
  gap: 18px;
  min-height: 100vh;
  padding: clamp(18px, 3vw, 34px);
  isolation: isolate;
}

.gallery-app::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-color: #050408;
  background:
    linear-gradient(180deg, rgba(5, 4, 8, 0.72) 0%, rgba(5, 4, 8, 0.42) 44%, rgba(5, 4, 8, 0.8) 100%),
    radial-gradient(circle at 50% 12%, rgba(123, 66, 255, 0.2), transparent 48rem),
    url("./Assets/background.png"),
    linear-gradient(rgba(215, 168, 73, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 168, 73, 0.04) 1px, transparent 1px),
    #050408;
  background-attachment: fixed, fixed, fixed, fixed, fixed, scroll;
  background-position: center, center, center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%, 72px 72px, 72px 72px, auto;
}

.gallery-app::after {
  position: fixed;
  inset: auto 0 0;
  z-index: -2;
  height: 46vh;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(215, 168, 73, 0.16), transparent),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0 1px,
      transparent 1px 94px
    );
  transform: perspective(600px) rotateX(62deg);
  transform-origin: bottom;
}

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

.ambient span {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(215, 168, 73, 0.16);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.42;
  animation: drift 16s ease-in-out infinite alternate;
}

.ambient span:nth-child(1) {
  left: -8rem;
  top: 12%;
}

.ambient span:nth-child(2) {
  right: -10rem;
  top: 18%;
  animation-delay: -4s;
}

.ambient span:nth-child(3) {
  left: 20%;
  bottom: -12rem;
  animation-delay: -8s;
}

.ambient span:nth-child(4) {
  right: 22%;
  bottom: -15rem;
  animation-delay: -11s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(28px, -18px, 0) scale(1.08);
  }
}

@keyframes voidAura {
  from {
    transform: scale(0.985);
    filter: blur(16px) saturate(1.2);
  }
  to {
    transform: scale(1.025);
    filter: blur(22px) saturate(1.55);
  }
}

@keyframes scandalPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero,
.inspector,
.thumb-shell {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  min-height: 92px;
  border-bottom: 1px solid rgba(215, 168, 73, 0.28);
}

.hero > div:first-child {
  min-width: 0;
}

.kicker,
.label {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 16px;
  max-width: 100%;
  font-family: "Cinzel Decorative", "Noto Serif TC", "Microsoft JhengHei",
    "Microsoft YaHei", serif;
  font-size: clamp(1.65rem, 3.55vw, 4.15rem);
  font-weight: 900;
  line-height: 0.98;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
  text-shadow:
    0 0 24px rgba(123, 66, 255, 0.72),
    0 0 8px rgba(215, 168, 73, 0.38),
    0 2px 0 rgba(0, 0, 0, 0.75);
}

h1 a {
  color: inherit;
  white-space: nowrap;
  text-decoration-color: rgba(215, 168, 73, 0.55);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

h1 a:hover,
h1 a:focus-visible {
  color: #fff8de;
  text-decoration-color: var(--gold);
  outline: none;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
  font-size: 0.86rem;
}

.hero-meta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 138px;
  padding: 8px 12px;
  border: 1px solid rgba(215, 168, 73, 0.32);
  background: rgba(7, 6, 13, 0.58);
  color: inherit;
  text-align: center;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.hero-meta a:hover,
.hero-meta a:focus-visible {
  border-color: rgba(117, 231, 255, 0.72);
  background: linear-gradient(135deg, rgba(26, 134, 165, 0.32), rgba(94, 46, 157, 0.38));
  color: #f9f4dd;
  box-shadow: 0 0 18px rgba(117, 231, 255, 0.24);
}

.external-icon {
  display: inline-grid;
  place-items: center;
  width: 1.1em;
  height: 1.1em;
  border: 1px solid rgba(117, 231, 255, 0.5);
  color: #75e7ff;
  font-size: 0.78rem;
  line-height: 1;
}

.stage {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  row-gap: clamp(15px, 2.25vh, 32px);
  width: min(1260px, 100%);
  min-height: clamp(470px, 68vh, 820px);
  margin-inline: auto;
  perspective: 1400px;
}

.vault-lines {
  position: absolute;
  inset: 10% 4% 24%;
  z-index: 0;
  border: 1px solid rgba(215, 168, 73, 0.22);
  border-bottom: 0;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 44% 44% 0 0;
  box-shadow: inset 0 44px 80px rgba(123, 66, 255, 0.1);
  pointer-events: none;
}

.vault-lines::before,
.vault-lines::after {
  position: absolute;
  inset: 7% 8% 0;
  content: "";
  border: 1px solid rgba(123, 66, 255, 0.18);
  border-bottom: 0;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: inherit;
}

.vault-lines::after {
  inset: 15% 16% 0;
  border-color: rgba(121, 242, 122, 0.13);
}

.carousel {
  position: relative;
  z-index: 2;
  width: min(100%, 1060px);
  height: clamp(360px, 55vh, 650px);
  outline: none;
  transform-style: preserve-3d;
}

.card-tile {
  --x: 0px;
  --rot: 0deg;
  --scale: 1;
  --z: 0;
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: clamp(160px, 21vw, 300px);
  aspect-ratio: 1029 / 1453;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  cursor: pointer;
  transform:
    translateX(calc(-50% + var(--x)))
    translateZ(var(--z))
    rotateY(var(--rot))
    scale(var(--scale));
  transform-origin: 50% 78%;
  transition:
    transform 540ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 540ms ease,
    opacity 320ms ease;
  filter: brightness(var(--brightness, 0.62)) saturate(var(--saturation, 0.72));
  opacity: var(--opacity, 0.25);
  isolation: isolate;
  will-change: transform, opacity, filter;
}

.card-tile::before {
  position: absolute;
  content: "";
  border-radius: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease, transform 540ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-tile::before {
  inset: -20px;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 6%, rgba(205, 250, 255, 0.92), transparent 22%),
    radial-gradient(circle at 50% 94%, rgba(83, 198, 255, 0.72), transparent 24%),
    linear-gradient(90deg, rgba(70, 199, 255, 0), rgba(126, 222, 255, 0.7), rgba(70, 199, 255, 0));
  filter: blur(18px);
}

.card-tile.is-active {
  filter: brightness(1.07) saturate(1.1);
}

.card-tile.is-active::before {
  opacity: 1;
  animation: voidAura 2.8s ease-in-out infinite alternate;
}

.card-tile.is-active .card-frame {
  box-shadow:
    0 28px 72px var(--shadow),
    0 0 18px rgba(160, 229, 255, 0.88),
    0 0 42px rgba(82, 190, 255, 0.7),
    0 0 86px rgba(123, 66, 255, 0.34);
}

.card-frame {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: inherit;
  background: #0b0710;
  box-shadow:
    0 28px 72px var(--shadow),
    0 0 0 1px rgba(215, 168, 73, 0.34),
    0 0 44px rgba(123, 66, 255, 0.22);
  overflow: hidden;
}

.card-frame::after {
  position: absolute;
  inset: auto 11% -10px;
  z-index: -1;
  height: 30px;
  content: "";
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  filter: blur(14px);
}

.card-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}

.nav-button,
.close-button {
  border: 1px solid rgba(215, 168, 73, 0.42);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(215, 168, 73, 0.22), rgba(123, 66, 255, 0.14)),
    rgba(7, 6, 13, 0.7);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-button {
  position: absolute;
  z-index: 8;
  top: 48%;
  width: 52px;
  height: 72px;
  font-size: 3rem;
  line-height: 1;
}

.nav-prev {
  left: clamp(0px, 2vw, 24px);
}

.nav-next {
  right: clamp(0px, 2vw, 24px);
}

.like-dock {
  position: relative;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(14px, 2vh, 29px);
  font-family: "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
}

.like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 128px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(174, 237, 255, 0.48);
  color: #f4fcff;
  background:
    radial-gradient(circle at 50% 0, rgba(177, 239, 255, 0.32), transparent 58%),
    linear-gradient(135deg, rgba(32, 141, 188, 0.34), rgba(112, 66, 190, 0.36)),
    rgba(7, 6, 13, 0.78);
  box-shadow:
    0 0 24px rgba(90, 206, 255, 0.42),
    inset 0 0 18px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.like-button strong {
  min-width: 2ch;
  color: #bdf4ff;
  font-size: 1.05rem;
}

.like-button:hover,
.like-button:focus-visible {
  border-color: rgba(222, 252, 255, 0.9);
  transform: translateY(-2px);
  outline: none;
}

.like-button:disabled {
  cursor: default;
  opacity: 0.64;
  transform: none;
}

.like-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.boss-timeline {
  position: absolute;
  top: clamp(188px, 25vh, 270px);
  right: clamp(18px, 4vw, 74px);
  z-index: 7;
  display: grid;
  gap: 9px;
  width: min(230px, 20vw);
  pointer-events: none;
}

.boss-kill {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 6px 9px 6px 7px;
  border: 1px solid rgba(215, 168, 73, 0.34);
  background:
    radial-gradient(circle at 20% 50%, rgba(215, 168, 73, 0.18), transparent 58%),
    linear-gradient(90deg, rgba(7, 6, 13, 0.74), rgba(42, 25, 72, 0.42));
  box-shadow:
    0 0 20px rgba(117, 231, 255, 0.08),
    inset 0 0 18px rgba(255, 248, 222, 0.03);
  backdrop-filter: blur(8px);
}

.boss-kill img {
  display: block;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(215, 168, 73, 0.92);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(255, 248, 222, 0.2),
    0 0 14px rgba(215, 168, 73, 0.35),
    0 0 22px rgba(117, 231, 255, 0.12);
}

.boss-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.boss-name,
.boss-kill span {
  font-family: "Cinzel", "Noto Serif TC", "Microsoft JhengHei", serif;
  line-height: 1.18;
  text-shadow: 0 0 10px rgba(123, 66, 255, 0.44);
}

.boss-name {
  color: #aeefff;
  font-size: clamp(0.68rem, 0.85vw, 0.8rem);
  font-weight: 800;
  text-shadow:
    0 0 10px rgba(117, 231, 255, 0.5),
    0 0 18px rgba(123, 66, 255, 0.3);
}

.boss-kill span {
  color: rgba(255, 248, 222, 0.82);
  font-size: clamp(0.62rem, 0.76vw, 0.72rem);
  white-space: nowrap;
}

.boss-kill strong {
  color: #f1c66a;
  font-weight: 700;
  text-shadow:
    0 0 8px rgba(215, 168, 73, 0.38),
    0 0 14px rgba(117, 231, 255, 0.18);
}

.boss-kill strong.pending-kill {
  color: #ff9da9;
  text-shadow:
    0 0 8px rgba(255, 126, 164, 0.46),
    0 0 16px rgba(255, 87, 136, 0.2);
}

.nav-button:hover,
.nav-button:focus-visible,
.close-button:hover,
.close-button:focus-visible,
.primary-action:hover,
.primary-action:focus-visible,
.ghost-action:hover,
.ghost-action:focus-visible {
  border-color: var(--gold);
  transform: translateY(-2px);
  outline: none;
}

.inspector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(215, 168, 73, 0.22);
  border-bottom: 1px solid rgba(123, 66, 255, 0.2);
}

.inspector-copy {
  max-width: 680px;
}

.inspector h2 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3.8rem);
  line-height: 1;
  color: #fff8de;
  text-shadow: 0 0 18px rgba(123, 66, 255, 0.55);
}

.inspector p:last-child {
  max-width: 60ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-family: "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.primary-action,
.ghost-action {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid rgba(215, 168, 73, 0.4);
  color: var(--text);
  background: rgba(7, 6, 13, 0.7);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-action {
  background:
    linear-gradient(135deg, rgba(236, 107, 48, 0.32), rgba(123, 66, 255, 0.3)),
    rgba(7, 6, 13, 0.82);
}

.thumb-shell {
  --thumb-size: clamp(58px, 8vw, 86px);
  position: relative;
  overflow: hidden;
}

.thumb-shell::before,
.thumb-shell::after {
  position: absolute;
  top: 0;
  bottom: 12px;
  z-index: 2;
  width: min(90px, 14vw);
  content: "";
  pointer-events: none;
}

.thumb-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(7, 6, 13, 0.94), transparent);
}

.thumb-shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(7, 6, 13, 0.94), transparent);
}

.thumb-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  width: 100%;
  padding: 4px max(12px, calc((100% - var(--thumb-size)) / 2)) 12px;
  overscroll-behavior-x: contain;
  scroll-padding-inline: calc((100% - var(--thumb-size)) / 2);
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(215, 168, 73, 0.52) rgba(255, 255, 255, 0.08);
}

.thumb {
  flex: 0 0 var(--thumb-size);
  position: relative;
  aspect-ratio: 1029 / 1453;
  padding: 0;
  border: 1px solid rgba(215, 168, 73, 0.24);
  border-radius: 8px;
  background: #08060e;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.55;
  scroll-snap-align: center;
  transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.thumb.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(123, 66, 255, 0.26);
  opacity: 1;
  transform: translateY(-2px);
}

.lightbox {
  width: min(860px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--text);
}

.lightbox::backdrop {
  background:
    radial-gradient(circle at center, rgba(123, 66, 255, 0.22), transparent 42%),
    rgba(2, 2, 5, 0.86);
  backdrop-filter: blur(8px);
}

.lightbox-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(7px, 1vh, 12px);
  align-items: center;
  justify-items: center;
  box-sizing: border-box;
  max-height: calc(100vh - 24px);
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid rgba(215, 168, 73, 0.38);
  background:
    linear-gradient(135deg, rgba(215, 168, 73, 0.12), transparent 30%),
    rgba(8, 7, 13, 0.94);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.82);
}

.lightbox-card-wrap {
  position: relative;
  display: grid;
  justify-items: center;
  max-width: 100%;
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: min(72vh, calc(100vh - 260px));
  justify-self: center;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(215, 168, 73, 0.34),
    0 22px 70px rgba(0, 0, 0, 0.7);
}

.scandal-bubble {
  position: absolute;
  top: 43%;
  right: 9%;
  z-index: 3;
  width: min(280px, 38%);
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 126, 164, 0.7);
  border-radius: 18px 18px 5px 18px;
  color: #fff7fb;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 220, 238, 0.28), transparent 46%),
    linear-gradient(135deg, rgba(73, 18, 44, 0.9), rgba(33, 20, 67, 0.86));
  box-shadow:
    0 0 24px rgba(255, 87, 136, 0.34),
    0 0 42px rgba(123, 66, 255, 0.22),
    inset 0 0 18px rgba(255, 255, 255, 0.06);
  font-family: "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
  font-size: clamp(0.78rem, 1.05vw, 0.94rem);
  line-height: 1.55;
  text-align: left;
  text-shadow: 0 0 12px rgba(255, 126, 164, 0.44);
  backdrop-filter: blur(10px);
  animation: scandalPop 220ms ease-out;
}

.scandal-bubble::after {
  position: absolute;
  right: 20px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  content: "";
  background: linear-gradient(135deg, rgba(73, 18, 44, 0.92), rgba(33, 20, 67, 0.86));
  border-right: 1px solid rgba(255, 126, 164, 0.58);
  border-bottom: 1px solid rgba(255, 126, 164, 0.58);
  transform: rotate(45deg);
}

.scandal-bubble[hidden] {
  display: none;
}

.lightbox-caption {
  justify-self: stretch;
  padding: 0 56px 0 4px;
}

.lightbox-caption h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lightbox-note {
  width: min(640px, 100%);
  margin: 0 auto;
  color: rgba(255, 248, 222, 0.84);
  font-family: "Microsoft JhengHei", "Microsoft YaHei", sans-serif;
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  line-height: 1.75;
  text-align: center;
  text-shadow: 0 0 18px rgba(123, 66, 255, 0.42);
}

.lightbox-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.lightbox-actions .like-button,
.lightbox-actions .save-button,
.lightbox-actions .scandal-button {
  width: 128px;
  min-width: 128px;
}

.save-button,
.scandal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(215, 168, 73, 0.44);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(215, 168, 73, 0.22), rgba(123, 66, 255, 0.18)),
    rgba(7, 6, 13, 0.78);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.scandal-button {
  border-color: rgba(255, 126, 164, 0.54);
  color: #fff7fb;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 126, 164, 0.24), transparent 58%),
    linear-gradient(135deg, rgba(128, 35, 67, 0.38), rgba(123, 66, 255, 0.28)),
    rgba(7, 6, 13, 0.82);
  box-shadow:
    0 0 18px rgba(255, 87, 136, 0.2),
    inset 0 0 16px rgba(255, 255, 255, 0.04);
}

.save-button:hover,
.save-button:focus-visible,
.scandal-button:hover,
.scandal-button:focus-visible {
  border-color: var(--gold);
  transform: translateY(-2px);
  outline: none;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
}

@media (max-width: 1500px) {
  .boss-timeline {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(1180px, 100%);
    margin: -6px auto 0;
    pointer-events: auto;
  }

  .boss-kill {
    min-width: 0;
  }

  .boss-kill span {
    white-space: normal;
  }
}

@media (max-width: 820px) {
  body {
    overflow-x: hidden;
  }

  .gallery-app {
    grid-template-rows: auto minmax(350px, 50vh) auto auto auto;
    padding: 16px;
  }

  .stage {
    order: 1;
  }

  .inspector {
    display: contents;
  }

  .inspector-copy {
    order: 2;
    width: min(1180px, 100%);
    margin-inline: auto;
    padding: 18px 0 0;
    border-top: 1px solid rgba(215, 168, 73, 0.22);
  }

  .boss-timeline {
    order: 3;
  }

  .actions {
    order: 4;
    width: min(1180px, 100%);
    margin-inline: auto;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(123, 66, 255, 0.2);
  }

  .thumb-shell {
    order: 5;
  }

  .hero,
  .inspector {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-meta,
  .actions {
    justify-content: start;
  }

  h1 {
    font-size: clamp(1.18rem, 7.2vw, 2.25rem);
  }

  .stage {
    min-height: 430px;
    row-gap: 10px;
  }

  .carousel {
    height: 350px;
  }

  .card-tile {
    width: clamp(142px, 45vw, 224px);
  }

  .nav-button {
    top: auto;
    bottom: 58px;
    width: 46px;
    height: 48px;
    font-size: 2.2rem;
  }

  .like-dock {
    gap: 8px;
    margin-top: 9px;
  }

  .like-button {
    min-width: 108px;
    min-height: 38px;
    padding: 8px 12px;
  }

  .boss-timeline {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 2px auto 0;
  }

  .lightbox-caption {
    padding: 0 52px 0 4px;
  }

  .lightbox-actions {
    gap: 8px;
  }

  .lightbox-actions .like-button,
  .lightbox-actions .save-button,
  .lightbox-actions .scandal-button {
    width: 108px;
    min-width: 108px;
  }

  .lightbox img {
    max-height: min(68vh, calc(100vh - 228px));
    border-radius: 14px;
  }

  .scandal-bubble {
    top: 40%;
    right: 6%;
    width: min(230px, 48%);
    padding: 11px 12px;
    font-size: 0.76rem;
  }

  .save-button,
  .scandal-button {
    min-height: 38px;
    padding: 8px 12px;
  }
}

@media (max-height: 760px) {
  .lightbox img {
    max-height: calc(100vh - 220px);
  }

  .lightbox-note {
    font-size: 0.84rem;
    line-height: 1.45;
  }
}

@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;
  }
}
