/* 线描与彩绘共用同一画框，取消灯光遮罩。 */
.shaft-sticky { --silk-height: 103svh; }
.shaft-sticky .shaft-image {
 background: #e5dfbc url("../assets/backgrounds/paper-texture-cropped.webp") center / cover;
 opacity: 1; filter: none; transform: none;
}
.shaft-sticky .shaft-image::before, .shaft-sticky .silk-linework {
 position: absolute; top: 50%; left: 50%;
 width: calc(var(--silk-height) * 1080 / 1681); height: var(--silk-height);
 transform: translate(-50%, -50%);
 background-position: center; background-size: 100% 100%; background-repeat: no-repeat;
}
.shaft-sticky .shaft-image::before { content: ""; background-image: url("../assets/fullframe/silk-map.webp"); }
.shaft-sticky .silk-linework {
 z-index: 1; display: block; padding: 0; border: 0; border-radius: 0;
 background-color: transparent; background-image: url("../assets/fullframe/silk-linework.webp");
 clip-path: polygon(13.2% 0,88% 0,88% 34.6%,70% 34.6%,70% 100%,30% 100%,30% 34.6%,13.2% 34.6%);
 opacity: 1; cursor: pointer; transition: opacity .45s ease;
}
.shaft-sticky .silk-linework:hover, .shaft-sticky .silk-linework:focus { opacity: 0; }
.shaft-sticky .silk-linework:focus-visible { outline: 2px solid #9a6335; outline-offset: -4px; }
.shaft-sticky .silk-field, .shaft-sticky .shaft-vignette { display: none !important; }
@media (min-aspect-ratio: 1/1) { .shaft-sticky { --silk-height: 115svh; } }
@media (prefers-reduced-motion: reduce) { .shaft-sticky .silk-linework { transition: none; } }

/* 第1–3段局部显色，第4段起扩大为整幅显色。 */
@property --reveal-whole { syntax: "<number>"; inherits: true; initial-value: 0; }
.shaft-sticky { --reveal-x: 50%; --reveal-y: 50%; --reveal-whole: 0; }
.shaft-sticky .silk-linework {
 inset: 0; width: 100%; height: 100%; transform: none;
 background-size: calc(var(--silk-height) * 1080 / 1681) var(--silk-height);
 clip-path: none; pointer-events: none; opacity: calc(1 - var(--reveal-whole)) !important;
 mask-image: none;
}
.shaft-sticky .silk-field {
 display: grid !important; z-index: 2; background: none; cursor: default;
}
.shaft-sticky:has(.silk-field:hover) .silk-linework,
.shaft-sticky:has(.silk-field:focus) .silk-linework {
 mask-image: radial-gradient(circle at var(--reveal-x) var(--reveal-y),
  transparent 44px,
  #000 78px);
}
@supports (animation-timeline: view()) {
 .shaft-sticky { animation: reveal-phase linear both; animation-timeline: --shaft; animation-range: cover 0% cover 100%; }
}
@keyframes reveal-phase { 0%,57% { --reveal-whole: 0; } 65%,100% { --reveal-whole: 1; } }
@media (hover:none) {
 .shaft-sticky .silk-linework { pointer-events: auto; }
 .shaft-sticky .silk-field { pointer-events: none; }
 .shaft-sticky:has(.silk-linework:focus) .silk-linework {
  mask-image: radial-gradient(circle at 50% 50%,transparent 44px,#000 78px);
 }
}
.shaft-sticky:has(.silk-field i:nth-child(24n+1):hover) { --reveal-x: 2.083%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+2):hover) { --reveal-x: 6.250%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+3):hover) { --reveal-x: 10.417%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+4):hover) { --reveal-x: 14.583%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+5):hover) { --reveal-x: 18.750%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+6):hover) { --reveal-x: 22.917%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+7):hover) { --reveal-x: 27.083%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+8):hover) { --reveal-x: 31.250%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+9):hover) { --reveal-x: 35.417%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+10):hover) { --reveal-x: 39.583%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+11):hover) { --reveal-x: 43.750%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+12):hover) { --reveal-x: 47.917%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+13):hover) { --reveal-x: 52.083%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+14):hover) { --reveal-x: 56.250%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+15):hover) { --reveal-x: 60.417%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+16):hover) { --reveal-x: 64.583%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+17):hover) { --reveal-x: 68.750%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+18):hover) { --reveal-x: 72.917%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+19):hover) { --reveal-x: 77.083%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+20):hover) { --reveal-x: 81.250%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+21):hover) { --reveal-x: 85.417%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+22):hover) { --reveal-x: 89.583%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+23):hover) { --reveal-x: 93.750%; }
.shaft-sticky:has(.silk-field i:nth-child(24n+24):hover) { --reveal-x: 97.917%; }
.shaft-sticky:has(.silk-field i:nth-child(n+1):nth-child(-n+24):hover) { --reveal-y: 3.125%; }
.shaft-sticky:has(.silk-field i:nth-child(n+25):nth-child(-n+48):hover) { --reveal-y: 9.375%; }
.shaft-sticky:has(.silk-field i:nth-child(n+49):nth-child(-n+72):hover) { --reveal-y: 15.625%; }
.shaft-sticky:has(.silk-field i:nth-child(n+73):nth-child(-n+96):hover) { --reveal-y: 21.875%; }
.shaft-sticky:has(.silk-field i:nth-child(n+97):nth-child(-n+120):hover) { --reveal-y: 28.125%; }
.shaft-sticky:has(.silk-field i:nth-child(n+121):nth-child(-n+144):hover) { --reveal-y: 34.375%; }
.shaft-sticky:has(.silk-field i:nth-child(n+145):nth-child(-n+168):hover) { --reveal-y: 40.625%; }
.shaft-sticky:has(.silk-field i:nth-child(n+169):nth-child(-n+192):hover) { --reveal-y: 46.875%; }
.shaft-sticky:has(.silk-field i:nth-child(n+193):nth-child(-n+216):hover) { --reveal-y: 53.125%; }
.shaft-sticky:has(.silk-field i:nth-child(n+217):nth-child(-n+240):hover) { --reveal-y: 59.375%; }
.shaft-sticky:has(.silk-field i:nth-child(n+241):nth-child(-n+264):hover) { --reveal-y: 65.625%; }
.shaft-sticky:has(.silk-field i:nth-child(n+265):nth-child(-n+288):hover) { --reveal-y: 71.875%; }
.shaft-sticky:has(.silk-field i:nth-child(n+289):nth-child(-n+312):hover) { --reveal-y: 78.125%; }
.shaft-sticky:has(.silk-field i:nth-child(n+313):nth-child(-n+336):hover) { --reveal-y: 84.375%; }
.shaft-sticky:has(.silk-field i:nth-child(n+337):nth-child(-n+360):hover) { --reveal-y: 90.625%; }
.shaft-sticky:has(.silk-field i:nth-child(n+361):nth-child(-n+384):hover) { --reveal-y: 96.875%; }

.shaft-sticky .silk-linework, .shaft-sticky .silk-field { cursor: default; }
