:root {
  --page-bg: #dff7f3;
  --shadow: 0 24px 80px rgba(80, 167, 154, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.7), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.55), transparent 30%),
    var(--page-bg);
  color: #111827;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    Arial,
    sans-serif;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
}

.visual-stage {
  position: relative;
  width: min(100vw, 1702px);
  aspect-ratio: 1702 / 924;
}

.reference-page {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(var(--shadow));
  user-select: none;
  -webkit-user-drag: none;
}

.brand-overlay {
  position: absolute;
  left: 50%;
  top: calc(472 / 924 * 100%);
  z-index: 2;
  min-width: calc(132 / 1702 * 100%);
  padding: clamp(3px, 0.35vw, 6px) clamp(9px, 0.9vw, 16px);
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(205, 238, 255, 0.96), rgba(215, 212, 255, 0.93));
  color: #101820;
  font-size: clamp(12px, 1.42vw, 24px);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.mobile-quick-card {
  display: none;
}

.mobile-home-layout {
  display: none;
}

.avatar-hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.avatar-link {
  position: absolute;
  top: calc(var(--y) / 924 * 100%);
  left: calc(var(--x) / 1702 * 100%);
  width: calc(var(--w) / 1702 * 100%);
  height: calc(var(--h) / 924 * 100%);
  display: block;
  border-radius: 999px 999px 18px 18px;
  color: #151515;
  text-decoration: none;
  outline: none;
  cursor: pointer;
  transform: translateZ(0);
  transition:
    transform 180ms ease,
    filter 180ms ease;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.avatar-crop {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0;
  transform: scale(1);
  transition: opacity 160ms ease;
  pointer-events: none;
}

.avatar-crop img {
  position: absolute;
  left: calc(var(--x) / var(--w) * -100%);
  top: calc(var(--y) / var(--h) * -100%);
  width: calc(1702 / var(--w) * 100%);
  height: calc(924 / var(--h) * 100%);
  max-width: none;
  user-select: none;
  pointer-events: none;
}

.avatar-name {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  min-width: 78%;
  min-height: clamp(16px, 1.82vw, 30px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(8px, 0.8vw, 14px);
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(231, 241, 250, 0.98);
  color: #151515;
  font-size: clamp(10px, 1.05vw, 18px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.avatar-link:hover,
.avatar-link:focus-visible,
.avatar-link.is-active {
  transform: scale(1.14);
  filter: drop-shadow(0 12px 16px rgba(57, 113, 154, 0.22));
  z-index: 4;
}

.avatar-link:hover .avatar-crop,
.avatar-link:focus-visible .avatar-crop,
.avatar-link.is-active .avatar-crop {
  opacity: 1;
}

.avatar-link:focus-visible {
  outline: 3px solid rgba(44, 151, 180, 0.45);
  outline-offset: 4px;
}

.feature-panel {
  position: absolute;
  left: calc(293 / 1702 * 100%);
  top: calc(650 / 924 * 100%);
  width: calc(1116 / 1702 * 100%);
  min-height: calc(230 / 924 * 100%);
  padding: clamp(4px, 0.55vw, 9px) clamp(18px, 2vw, 34px) clamp(7px, 0.75vw, 12px);
  border-radius: 0 0 12px 12px;
  background:
    linear-gradient(180deg, #fff, #fff),
    radial-gradient(circle at 50% 55%, rgba(192, 234, 255, 0.28), transparent 26%);
  box-shadow: inset 0 1px 0 rgba(183, 203, 219, 0.55);
  z-index: 2;
}

.feature-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(9px, 1.1vw, 18px);
  color: #257b91;
  font-size: clamp(10px, 1.18vw, 20px);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.feature-title::before,
.feature-title::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(173, 199, 214, 0.78));
}

.feature-title::after {
  background: linear-gradient(90deg, rgba(173, 199, 214, 0.78), transparent);
}

.feature-title span {
  width: clamp(5px, 0.62vw, 10px);
  height: clamp(5px, 0.62vw, 10px);
  transform: rotate(45deg);
  background: #65b4ca;
  box-shadow: 0 0 0 1px rgba(57, 139, 166, 0.18);
}

.feature-title strong {
  display: inline-flex;
  align-items: center;
  gap: clamp(9px, 1vw, 16px);
  font-weight: 700;
}

.feature-title strong::before,
.feature-title strong::after {
  content: "";
  width: clamp(5px, 0.62vw, 10px);
  height: clamp(5px, 0.62vw, 10px);
  transform: rotate(45deg);
  background: #65b4ca;
  box-shadow: 0 0 0 1px rgba(57, 139, 166, 0.18);
}

.feature-title > span {
  display: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
  row-gap: clamp(2px, 0.3vw, 5px);
  column-gap: clamp(9px, 1.2vw, 18px);
  padding-top: clamp(5px, 0.62vw, 10px);
}

.feature-card {
  width: min(100%, clamp(68px, 8.5vw, 136px));
  display: grid;
  justify-items: center;
  gap: clamp(5px, 0.58vw, 9px);
  color: #181818;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transform: translateZ(0);
  transition:
    transform 180ms ease,
    filter 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.feature-card:nth-child(1) {
  grid-column: 2;
}

.feature-card:nth-child(2) {
  grid-column: 3;
}

.feature-card:nth-child(n + 3) {
  grid-row: 2;
}

.feature-card:nth-child(3) {
  grid-column: 1;
}

.feature-card:nth-child(4) {
  grid-column: 2;
}

.feature-card:nth-child(5) {
  grid-column: 3;
}

.feature-card:nth-child(6) {
  grid-column: 4;
}

.feature-card:nth-child(7) {
  grid-row: 3;
  grid-column: 2 / span 2;
}

.feature-grid {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.feature-grid .feature-card {
  grid-row: auto;
  grid-column: auto;
}

.feature-icon {
  position: relative;
  width: clamp(42px, 4.35vw, 60px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.95);
  color: #fff;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 3px rgba(57, 73, 112, 0.26);
  box-shadow:
    0 0 0 2px rgba(119, 169, 214, 0.35),
    0 6px 12px rgba(67, 114, 157, 0.14);
  transition:
    transform 180ms ease,
    filter 180ms ease;
  overflow: hidden;
}

.feature-icon::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  z-index: 2;
  pointer-events: none;
}

.feature-icon-avatar {
  background: #17231f;
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 2px rgba(42, 199, 190, 0.34),
    0 6px 12px rgba(25, 43, 38, 0.18);
}

.feature-icon-avatar::before {
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.22), transparent 34%);
}

.operator-avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.feature-icon-blue {
  background: linear-gradient(145deg, #7aa9ff, #5476d8);
}

.feature-icon-cyan {
  background: linear-gradient(145deg, #92e8ef, #56b9d2);
}

.feature-icon-pink {
  background: linear-gradient(145deg, #ff98b2, #ee6386);
}

.feature-icon-gold {
  background: linear-gradient(145deg, #ffd675, #f4a63e);
}

.feature-icon-green {
  background: linear-gradient(145deg, #a7df83, #6eb969);
}

.feature-icon-orange {
  background: linear-gradient(145deg, #ffb85f, #ff7b48);
}

.feature-icon-red {
  background: linear-gradient(145deg, #ff8b7f, #d64b55);
}

.feature-icon-purple {
  background: linear-gradient(145deg, #b997ff, #7c65d8);
}

.feature-icon-slate {
  background: linear-gradient(145deg, #6f8796, #344b5a);
}

.feature-name {
  display: block;
  width: max-content;
  max-width: clamp(76px, 10vw, 150px);
  color: #161616;
  font-size: clamp(9px, 0.95vw, 16px);
  font-weight: 700;
  line-height: 1.14;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.feature-card:hover,
.feature-card:focus-visible,
.feature-card.is-active {
  transform: scale(1.13);
  filter: drop-shadow(0 14px 18px rgba(65, 118, 162, 0.2));
  z-index: 3;
}

.feature-card:hover .feature-icon,
.feature-card:focus-visible .feature-icon,
.feature-card.is-active .feature-icon {
  transform: scale(1.06);
}

.feature-card:focus-visible {
  outline: 3px solid rgba(44, 151, 180, 0.45);
  outline-offset: 4px;
  border-radius: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .page-shell {
    display: block;
    min-height: 100vh;
    padding: 12px 0 72px;
    overflow-x: hidden;
  }

  .visual-stage {
    display: none;
  }

  .mobile-home-layout {
    width: min(100%, 430px);
    display: grid;
    gap: 18px;
    margin: 0 auto;
    padding: 0 14px;
  }

  .mobile-top-banner {
    display: block;
    width: 100%;
    aspect-ratio: 882 / 510;
    object-fit: cover;
    border: 0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(94, 155, 177, 0.18);
  }

  .mobile-service-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(84, 162, 154, 0.18);
  }

  .mobile-service-head {
    min-height: 178px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 14px;
    padding: 24px 18px 22px;
    background:
      radial-gradient(circle at 22% 36%, rgba(255, 255, 255, 0.45), transparent 38%),
      linear-gradient(120deg, #b7f0ed 0%, #d4eeff 47%, #edc8ff 100%);
    color: #14202b;
    position: relative;
  }

  .mobile-service-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.36) 0 2px, transparent 3px),
      radial-gradient(circle at 86% 26%, rgba(255, 255, 255, 0.42) 0 2px, transparent 3px);
    background-size: 56px 56px, 72px 72px;
    opacity: 0.7;
    pointer-events: none;
  }

  .mobile-service-head h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: clamp(23px, 6.4vw, 29px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.72);
  }

  .mobile-shortcut-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(104px, 1fr));
    gap: 28px;
    align-items: start;
  }

  .mobile-shortcut {
    min-width: 108px;
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #17212a;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-shortcut img {
    width: clamp(76px, 20.5vw, 88px);
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
    border: 6px solid #fff;
    border-radius: 50%;
    background: #1d2f44;
    box-shadow:
      0 0 0 2px rgba(151, 190, 225, 0.55),
      0 8px 18px rgba(63, 128, 156, 0.2);
  }

  .mobile-shortcut span {
    min-width: 86px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(230, 242, 255, 0.94));
    font-size: clamp(15px, 4vw, 17px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
  }

  .mobile-feature-panel {
    padding: 18px 20px 28px;
  }

  .mobile-feature-title {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    color: #278496;
    font-size: clamp(17px, 4.7vw, 22px);
    line-height: 1.12;
    text-align: center;
    white-space: nowrap;
  }

  .mobile-feature-title span {
    position: relative;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(101, 180, 202, 0.65));
  }

  .mobile-feature-title span:last-child {
    background: linear-gradient(90deg, rgba(101, 180, 202, 0.65), transparent);
  }

  .mobile-feature-title span::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -2px;
    width: 9px;
    height: 9px;
    transform: rotate(45deg);
    background: #65b4ca;
  }

  .mobile-feature-title span:last-child::after {
    left: -2px;
    right: auto;
  }

  .mobile-feature-title strong {
    font-weight: 900;
  }

  .mobile-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    row-gap: 24px;
    column-gap: 14px;
    padding-top: 24px;
  }

  .mobile-feature-card {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #111;
    text-decoration: none;
    font-size: clamp(15px, 4.2vw, 18px);
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    word-break: keep-all;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-feature-icon {
    width: clamp(64px, 17.5vw, 76px);
    aspect-ratio: 1;
    display: block;
    padding: 4px;
    border-radius: 50%;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(145deg, #9cf3ee, #74d5e2, #ffffff) border-box;
    border: 2px solid transparent;
    box-shadow:
      0 0 0 1px rgba(72, 191, 189, 0.28),
      0 8px 18px rgba(43, 120, 135, 0.16);
  }

  .mobile-feature-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .reference-page {
    filter: none;
  }

  .brand-overlay {
    top: 51.1%;
  }

  .mobile-quick-card {
    position: absolute;
    left: 50%;
    top: clamp(98px, 25vw, 108px);
    z-index: 4;
    width: min(54%, 226px);
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 7px 12px 8px;
    transform: translateX(-50%);
    border-radius: 16px;
    background:
      linear-gradient(135deg, rgba(235, 253, 255, 0.96), rgba(245, 230, 255, 0.95)),
      radial-gradient(circle at 22% 30%, rgba(255, 255, 255, 0.72), transparent 38%);
    box-shadow:
      0 10px 24px rgba(94, 155, 177, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .mobile-brand {
    min-width: 86px;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(236, 244, 252, 0.96);
    color: #101820;
    font-size: clamp(13px, 3.7vw, 16px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    box-shadow: 0 2px 8px rgba(54, 125, 156, 0.12);
  }

  .mobile-quick-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .mobile-quick-actions span {
    min-width: 62px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #edf8ff);
    color: #17212a;
    font-size: clamp(12px, 3.2vw, 14px);
    font-weight: 800;
    line-height: 1;
    text-align: center;
    box-shadow:
      0 0 0 1px rgba(117, 205, 213, 0.45),
      0 4px 10px rgba(58, 128, 159, 0.13);
  }

  .avatar-hotspots {
    display: block;
  }

  .avatar-name {
    display: none;
  }

  .avatar-link {
    top: clamp(117px, 30.5vw, 130px);
    width: clamp(66px, 17.4vw, 76px);
    height: clamp(32px, 8.8vw, 38px);
    border-radius: 999px;
    z-index: 5;
  }

  .avatar-runner {
    left: calc(50% - clamp(70px, 18vw, 78px));
  }

  .avatar-deposit {
    left: calc(50% + clamp(4px, 1.1vw, 6px));
  }

  .feature-panel {
    left: 50%;
    top: clamp(160px, 41vw, 178px);
    width: min(82%, 330px);
    min-height: 0;
    padding: 12px 16px 14px;
    transform: translateX(-50%);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
      radial-gradient(circle at 50% 0%, rgba(160, 231, 226, 0.24), transparent 45%);
    box-shadow:
      0 14px 32px rgba(78, 164, 156, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }

  .feature-title {
    gap: 8px;
    font-size: clamp(10px, 2.85vw, 12px);
    margin-bottom: 2px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 10px;
    column-gap: 12px;
    padding-top: 10px;
  }

  .feature-card {
    width: 100%;
    gap: 5px;
  }

  .feature-icon {
    width: clamp(42px, 11.2vw, 48px);
    border-width: 2px;
    font-size: clamp(13px, 3.7vw, 17px);
    box-shadow:
      0 0 0 2px rgba(42, 199, 190, 0.28),
      0 6px 14px rgba(25, 43, 38, 0.16);
  }

  .feature-name {
    font-size: clamp(10px, 2.75vw, 12px);
    line-height: 1.12;
    white-space: normal;
    text-align: center;
  }
}

.home-full-image.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(16px, 4vw, 56px) 0;
}

.home-full-image .visual-stage {
  position: relative;
  display: block;
  width: min(100vw, 1672px);
  aspect-ratio: 1672 / 869;
  --stage-w: 1672;
  --stage-h: 869;
}

.home-full-image .reference-page {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(var(--shadow));
}

.home-full-image .avatar-hotspots,
.home-full-image .feature-panel,
.home-full-image .feature-grid {
  position: absolute;
  inset: 0;
  display: block;
  width: auto;
  min-height: 0;
  padding: 0;
  transform: none;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.home-full-image .avatar-link,
.home-full-image .feature-card {
  position: absolute;
  left: calc(var(--x) / var(--stage-w) * 100%);
  top: calc(var(--y) / var(--stage-h) * 100%);
  width: calc(var(--w) / var(--stage-w) * 100%);
  height: calc(var(--h) / var(--stage-h) * 100%);
  display: block;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.home-full-image .feature-card {
  border-radius: 18px;
}

.home-full-image .avatar-runner {
  --x: 724;
  --y: 518;
  --w: 90;
  --h: 116;
}

.home-full-image .avatar-deposit {
  --x: 884;
  --y: 518;
  --w: 90;
  --h: 116;
}

.home-full-image .feature-boss {
  --x: 298;
  --y: 706;
  --w: 112;
  --h: 128;
}

.home-full-image .feature-welfare {
  --x: 426;
  --y: 706;
  --w: 112;
  --h: 128;
}

.home-full-image .feature-lucky {
  --x: 554;
  --y: 706;
  --w: 112;
  --h: 128;
}

.home-full-image .feature-attack {
  --x: 682;
  --y: 706;
  --w: 112;
  --h: 128;
}

.home-full-image .feature-bakshi {
  --x: 810;
  --y: 706;
  --w: 112;
  --h: 128;
}

.home-full-image .feature-hot {
  --x: 938;
  --y: 706;
  --w: 112;
  --h: 128;
}

.home-full-image .feature-fun {
  --x: 1066;
  --y: 706;
  --w: 112;
  --h: 128;
}

.home-full-image .feature-companion {
  --x: 1194;
  --y: 706;
  --w: 112;
  --h: 128;
}

.home-full-image .feature-special {
  --x: 1322;
  --y: 706;
  --w: 112;
  --h: 128;
}

.home-full-image .avatar-link:hover,
.home-full-image .avatar-link:focus-visible,
.home-full-image .feature-card:hover,
.home-full-image .feature-card:focus-visible {
  transform: none;
  filter: none;
  outline: 2px solid rgba(72, 199, 210, 0.35);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .home-full-image.page-shell {
    display: grid;
    align-items: start;
    padding: 10px 0 72px;
  }

  .home-full-image .visual-stage {
    display: block;
    width: 100vw;
    aspect-ratio: 941 / 1672;
    --stage-w: 941;
    --stage-h: 1672;
  }

  .home-full-image .reference-page {
    content: url("./assets/home-mobile-full.png?v=20260726-mobile-full");
  }

  .home-full-image .avatar-runner {
    --x: 281;
    --y: 620;
    --w: 160;
    --h: 168;
  }

  .home-full-image .avatar-deposit {
    --x: 500;
    --y: 620;
    --w: 160;
    --h: 168;
  }

  .home-full-image .feature-boss {
    --x: 88;
    --y: 945;
    --w: 170;
    --h: 170;
  }

  .home-full-image .feature-welfare {
    --x: 386;
    --y: 945;
    --w: 170;
    --h: 170;
  }

  .home-full-image .feature-lucky {
    --x: 684;
    --y: 945;
    --w: 170;
    --h: 170;
  }

  .home-full-image .feature-attack {
    --x: 88;
    --y: 1160;
    --w: 170;
    --h: 170;
  }

  .home-full-image .feature-bakshi {
    --x: 386;
    --y: 1160;
    --w: 170;
    --h: 170;
  }

  .home-full-image .feature-hot {
    --x: 684;
    --y: 1160;
    --w: 170;
    --h: 170;
  }

  .home-full-image .feature-fun {
    --x: 88;
    --y: 1372;
    --w: 170;
    --h: 170;
  }

  .home-full-image .feature-companion {
    --x: 386;
    --y: 1372;
    --w: 170;
    --h: 170;
  }

  .home-full-image .feature-special {
    --x: 684;
    --y: 1372;
    --w: 170;
    --h: 170;
  }
}

.detail-page {
  min-height: 100vh;
  padding: 32px 18px 56px;
}

.detail-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.detail-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 28px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(175, 239, 235, 0.92), rgba(224, 190, 255, 0.9)),
    #fff;
  box-shadow: 0 18px 48px rgba(81, 151, 158, 0.18);
}

.back-link {
  width: fit-content;
  color: #176d83;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
}

.detail-hero h1 {
  margin: 0;
  color: #153246;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.detail-hero p {
  max-width: 760px;
  margin: 0;
  color: #245166;
  font-size: 17px;
  line-height: 1.7;
}

.content-grid {
  display: grid;
  gap: 16px;
}

.content-card {
  padding: 22px 24px;
  border: 1px solid rgba(159, 200, 213, 0.48);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(76, 140, 153, 0.12);
}

.content-card h2 {
  margin: 0 0 14px;
  color: #176d83;
  font-size: clamp(21px, 2.6vw, 30px);
  line-height: 1.2;
}

.content-card h3 {
  margin: 18px 0 10px;
  color: #223447;
  font-size: 19px;
}

.content-card h3:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li {
  color: #17202a;
  font-size: 16px;
  line-height: 1.75;
}

.content-card p {
  margin: 8px 0;
}

.content-card ol,
.content-card ul {
  margin: 0;
  padding-left: 1.35em;
}

.price-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.price-list div {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5fbfc;
  color: #17202a;
  font-size: 16px;
  line-height: 1.55;
}

.note {
  border-left: 4px solid #63b8cc;
  padding-left: 12px;
  color: #31586a;
}

.poster-actions {
  width: min(1080px, 100%);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.page-step {
  min-width: 64px;
  padding: 6px 12px;
  border: 1px solid rgba(23, 109, 131, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(23, 109, 131, 0.8);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.poster-carousel {
  position: relative;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0 84px;
}

.poster-stack {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.poster-view {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.poster-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(81, 151, 158, 0.18);
}

.notice-view {
  margin-top: 18px;
}

.poster-nav {
  position: fixed;
  top: 50%;
  z-index: 20;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(240, 162, 74, 0.7);
  border-radius: 50%;
  background: rgba(7, 11, 16, 0.82);
  color: #ffb15a;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(7, 11, 16, 0.22);
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.poster-nav-prev {
  left: max(24px, calc((100vw - 1320px) / 2 + 14px));
}

.poster-nav-next {
  right: max(24px, calc((100vw - 1320px) / 2 + 14px));
}

.poster-nav:hover,
.poster-nav:focus-visible {
  transform: translateY(-50%) scale(1.08);
  background: #ffb15a;
  color: #071018;
  box-shadow: 0 16px 36px rgba(240, 162, 74, 0.28);
}

.poster-nav:focus-visible {
  outline: 3px solid rgba(240, 162, 74, 0.38);
  outline-offset: 4px;
}

/* Detail pages: generated artwork remains visual, while the exact rules stay as real, readable text. */
.detail-page {
  background:
    radial-gradient(circle at top, rgba(42, 76, 98, 0.45), transparent 38%),
    #080b0e;
  color: #1c1914;
}

.illustrated-poster {
  position: relative;
  width: min(1000px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(236, 193, 111, 0.32);
  border-radius: 12px;
  isolation: isolate;
  background: #0c0e10;
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.52);
}

.illustrated-poster::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(4, 7, 10, 0.1), rgba(4, 7, 10, 0.58) 19%, rgba(4, 7, 10, 0.58) 81%, rgba(4, 7, 10, 0.1)),
    linear-gradient(180deg, rgba(4, 7, 10, 0.08), rgba(4, 7, 10, 0.36)),
    var(--poster-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(0.76) brightness(0.63);
}

.poster-art {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background-image: var(--poster-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.art-summary {
  position: absolute;
  top: 19%;
  right: 20%;
  bottom: 15%;
  left: 20%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(18px, 3.2vw, 38px);
  border: 1px solid rgba(103, 60, 26, 0.54);
  background:
    repeating-linear-gradient(0deg, rgba(100, 62, 26, 0.08) 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 45% 42%, #ead7aa 0%, #cfac72 76%, #8f6a3f 100%);
  box-shadow: 10px 16px 24px rgba(8, 8, 8, 0.45), inset 0 0 28px rgba(73, 39, 14, 0.3);
  color: #2b1a0e;
  text-align: center;
}

.art-summary::before,
.art-summary::after {
  position: absolute;
  width: 34px;
  height: 18px;
  content: "";
  border-color: rgba(117, 37, 24, 0.76);
  border-style: solid;
}

.art-summary::before {
  top: -9px;
  left: 14%;
  border: 0;
  background: rgba(116, 92, 57, 0.78);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: rotate(-5deg);
}

.art-summary::after {
  right: 16%;
  bottom: -9px;
  border: 0;
  background: rgba(116, 92, 57, 0.78);
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3);
  transform: rotate(4deg);
}

.art-summary-head {
  margin-bottom: clamp(12px, 2vw, 20px);
}

.art-summary-head span {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #82291d;
  background: #8d2b1e;
  box-shadow: 2px 2px 0 #5c1b13;
  color: #ffe2a2;
  font-size: clamp(10px, 1.5vw, 14px);
  font-weight: 900;
  letter-spacing: 1px;
}

.art-summary-head h2 {
  margin: 8px 0 0;
  color: #381b0d;
  font-size: clamp(28px, 5.8vw, 58px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #dca54e, 3px 3px 0 rgba(98, 29, 18, 0.22);
}

.art-summary-grid {
  display: grid;
  flex: 1;
  grid-auto-rows: minmax(0, 1fr);
  gap: clamp(5px, 0.9vw, 9px);
  margin-top: 2px;
}

.art-summary-grid > div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(72px, 0.46fr) 1fr;
  min-height: 0;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 7px 30px;
  border-bottom: 1px dashed rgba(112, 59, 25, 0.72);
  background: linear-gradient(90deg, rgba(128, 51, 29, 0.08), transparent 50%);
}

.art-summary-grid > div::before {
  position: absolute;
  left: 2px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #8e2719;
  border-radius: 50%;
  background: #a33b25;
  box-shadow: inset 0 0 0 2px rgba(245, 211, 140, 0.38);
  color: #ffe4a3;
  content: "★";
  font-size: 10px;
}

.art-summary-grid b {
  color: #8e2719;
  font-size: clamp(15px, 2.7vw, 27px);
  line-height: 1;
}

.art-summary-grid span,
.art-summary-note {
  color: #412517;
  font-size: clamp(10px, 1.45vw, 14px);
  font-weight: 700;
  line-height: 1.35;
}

.art-summary-note {
  margin: clamp(9px, 1.3vw, 13px) 0 0;
  padding-top: 8px;
  border-top: 3px double rgba(131, 38, 24, 0.55);
}

/* The welfare medic and equipment case sit in front of the desk; keep the task sheet between them. */
main[data-detail-page="welfare"] .art-summary {
  top: 31%;
  right: 27%;
  bottom: 18%;
  left: 37%;
  padding: clamp(12px, 2.1vw, 26px);
}

main[data-detail-page="welfare"] .art-summary-grid > div {
  grid-template-columns: minmax(58px, 0.52fr) 1fr;
  padding-left: 25px;
}

main[data-detail-page="welfare"] .art-summary-grid > div::before {
  width: 17px;
  height: 17px;
  left: 1px;
}

.poster-copy {
  position: relative;
  z-index: 1;
  width: min(82%, 760px);
  max-width: 760px;
  margin: 0 auto clamp(24px, 4vw, 44px);
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid rgba(78, 53, 30, 0.52);
  background:
    repeating-linear-gradient(0deg, rgba(113, 73, 34, 0.035) 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at center, transparent 58%, rgba(74, 43, 19, 0.16) 100%),
    linear-gradient(90deg, rgba(76, 45, 21, 0.12), transparent 10%, transparent 90%, rgba(76, 45, 21, 0.12)),
    rgba(242, 225, 187, 0.93);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34), inset 0 0 34px rgba(108, 70, 29, 0.17);
}

.poster-copy::before,
.poster-copy::after {
  position: absolute;
  width: 20px;
  height: 20px;
  content: "";
  border: 4px solid rgba(70, 48, 28, 0.75);
}

.poster-copy::before {
  top: 9px;
  left: 9px;
  border-right: 0;
  border-bottom: 0;
}

.poster-copy::after {
  right: 9px;
  bottom: 9px;
  border-top: 0;
  border-left: 0;
}

.poster-copy-header {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 26px;
  text-align: center;
}

.poster-copy-header span {
  padding: 5px 13px;
  border: 1px solid #85271c;
  border-radius: 2px;
  background: #8c281d;
  box-shadow: 2px 2px 0 #5b1a13, inset 0 0 0 1px rgba(255, 232, 186, 0.28);
  color: #f6dfad;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
}

.poster-copy-header h1 {
  margin: 0;
  color: #2d170c;
  font-size: clamp(32px, 6vw, 60px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #d4a04e, 3px 3px 0 rgba(96, 26, 15, 0.22);
}

.copy-content {
  display: grid;
  gap: 18px;
}

.copy-section {
  padding: 22px 0 0;
  border-top: 3px double rgba(127, 42, 27, 0.64);
  background: linear-gradient(90deg, rgba(125, 38, 24, 0.045), transparent 18%);
}

.copy-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.copy-section h2,
.copy-section h3 {
  margin: 0 0 11px;
  color: #7d2018;
  font-weight: 900;
  letter-spacing: 0;
}

.copy-section h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(24px, 4.3vw, 34px);
}

.copy-section h2::before {
  width: 7px;
  height: 1.15em;
  flex: 0 0 auto;
  content: "";
  background: linear-gradient(#a73b25, #692015);
  box-shadow: 3px 0 0 rgba(204, 152, 60, 0.68);
}

.copy-section h3 { margin-top: 18px; font-size: 19px; }

.copy-section p,
.copy-section li {
  margin: 7px 0;
  color: #211c17;
  font-size: clamp(14px, 2.3vw, 16px);
  line-height: 1.72;
}

.copy-section ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rules;
}

.copy-section ol li {
  position: relative;
  min-height: 52px;
  margin: 10px 0;
  padding: 12px 14px 12px 54px;
  border: 1px solid rgba(109, 67, 33, 0.28);
  border-left: 3px solid #8e2a1b;
  background: rgba(255, 249, 229, 0.47);
  box-shadow: inset 0 0 0 1px rgba(197, 151, 68, 0.12);
  counter-increment: rules;
}

.copy-section ol li::before {
  position: absolute;
  top: 11px;
  left: 12px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #8c2d1c;
  border-radius: 50%;
  background: #6f2117;
  box-shadow: inset 0 0 0 2px rgba(235, 196, 111, 0.3);
  color: #f5d88e;
  content: counter(rules, decimal-leading-zero);
  font-size: 11px;
  font-weight: 900;
}

.price-lines {
  display: grid;
  gap: 7px;
}

.price-lines p {
  margin: 0;
  padding: 7px 9px;
  border-left: 3px solid #a63920;
  background: rgba(255, 250, 231, 0.45);
}

.copy-section b { color: #8e2719; }

.copy-section li b,
.copy-section p b {
  padding: 0 2px;
  color: #8b2417;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(251, 222, 155, 0.68);
}

.copy-note {
  padding: 10px 12px;
  border-left: 4px solid #ae6a26;
  background: rgba(180, 115, 42, 0.1);
}

.notice-section {
  border-top: 3px double rgba(133, 38, 26, 0.7);
}

.layout-grid .copy-section ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.layout-grid .copy-section ol li {
  height: 100%;
  margin: 0;
}

.layout-grid .copy-section h2 {
  margin-bottom: 14px;
}

.provided-poster-page {
  position: relative;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.provided-poster-stack {
  display: grid;
  gap: 18px;
  width: min(1024px, 100%);
  margin: 0 auto;
}

.provided-poster-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(5, 24, 29, 0.34);
}

.order-notice-image {
  background: #06110f;
}

.detail-page {
  min-height: 100vh;
  padding: 14px 18px 54px;
  background:
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.84), transparent 21%),
    radial-gradient(circle at 72% 42%, rgba(210, 220, 220, 0.52), transparent 28%),
    linear-gradient(135deg, rgba(214, 218, 214, 0.46), rgba(250, 250, 247, 0.78)),
    #ececea;
  color: #1d2328;
}

.detail-page.lightbox-open {
  overflow: hidden;
}

.detail-webpage {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.web-back-link {
  position: fixed;
  top: 12px;
  left: max(16px, calc((100vw - 1100px) / 2 + 14px));
  z-index: 20;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #1d2630;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(16, 24, 32, 0.2);
}

.web-back-link:hover,
.web-back-link:focus-visible {
  background: #0f1720;
}

.web-price-page {
  padding-top: 46px;
}

.web-page-header {
  display: grid;
  place-items: center;
  min-height: 72px;
}

.web-page-header h1 {
  margin: 0;
  color: #1c252b;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.web-poster-card {
  display: grid;
  gap: 18px;
  width: min(1024px, 100%);
  margin: 0 auto;
  padding: 14px 14px 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(31, 35, 38, 0.1);
}

.category-switch {
  display: flex;
  gap: 7px;
  overflow: visible;
  padding: 2px 2px 8px;
  white-space: nowrap;
}

.category-tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(163, 172, 178, 0.52);
  border-radius: 999px;
  background: #f7f8f8;
  color: #4c555b;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-tab.is-active {
  border-color: #b1121c;
  background: #fff;
  color: #b1121c;
  box-shadow: inset 0 -2px 0 #b1121c;
}

.category-tab:focus-visible {
  outline: 3px solid rgba(177, 18, 28, 0.32);
  outline-offset: 2px;
}

.category-panel {
  display: none;
}

.category-panel.is-active {
  display: grid;
  gap: 18px;
}

.poster-zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: inherit;
}

.poster-zoom-trigger:focus-visible {
  outline: 3px solid rgba(177, 18, 28, 0.42);
  outline-offset: 4px;
}

.web-poster-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.web-page-footer {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 56px 0 4px;
  color: #9a9a9a;
  font-size: 12px;
  line-height: 1.5;
}

.image-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 56px 16px 24px;
  background: rgba(0, 0, 0, 0.86);
}

.image-lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 101;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 14px;
  cursor: pointer;
}

.lightbox-image {
  display: block;
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 88px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

@media (max-width: 720px) {
  .detail-webpage {
    width: 100%;
  }

  .web-poster-card {
    width: 100%;
    padding: 10px 8px 14px;
    overflow: hidden;
  }

  .poster-zoom-trigger,
  .web-poster-image {
    max-width: 100%;
  }

  .detail-page {
    padding: 12px 14px 34px;
  }

  .detail-hero,
  .content-card {
    border-radius: 12px;
    padding: 18px;
  }

  .content-card p,
  .content-card li,
  .price-list div {
    font-size: 15px;
  }

  .poster-image {
    border-radius: 12px;
  }

  .poster-actions {
    margin-bottom: 12px;
  }

  .page-step {
    font-size: 13px;
  }

  .poster-carousel {
    padding: 0;
  }

  .poster-nav {
    top: auto;
    bottom: 18px;
    width: 42px;
    height: 42px;
    transform: none;
    background: rgba(7, 11, 16, 0.86);
  }

  .poster-nav-prev {
    left: 18px;
  }

  .poster-nav-next {
    right: 18px;
  }

  .poster-nav:hover,
  .poster-nav:focus-visible {
    transform: scale(1.08);
  }

  .provided-poster-stack {
    gap: 12px;
  }

  .provided-poster-image {
    border-radius: 7px;
  }

  .detail-webpage {
    width: 100%;
  }

  .web-back-link {
    left: 18px;
  }

  .web-page-footer {
    padding-top: 46px;
  }

  .category-switch {
    gap: 5px;
  }

  .category-tab {
    min-height: 32px;
    padding: 0 6px;
    font-size: 11px;
  }

  .illustrated-poster {
    border-radius: 8px;
  }

  .poster-copy {
    width: calc(100% - 28px);
    padding: 20px 16px;
  }

  .art-summary {
    top: 17%;
    right: 14%;
    bottom: 12%;
    left: 14%;
    padding: 14px;
  }

  main[data-detail-page="welfare"] .art-summary {
    top: 28%;
    right: 24%;
    bottom: 17%;
    left: 34%;
  }

  .art-summary-grid > div {
    min-height: 48px;
    padding: 6px;
  }

  .copy-section {
    padding-top: 18px;
  }

  .copy-section ol li {
    padding: 11px 11px 11px 49px;
  }

  .layout-grid .copy-section ol {
    grid-template-columns: 1fr;
  }
}
