html, body {
  margin: 0;
  background: #f6e7dc;
  color: #3a2a22;
  font-family: "PingFang TC", "Noto Sans TC", sans-serif;
}
body { min-height: 100%; }
.uat-watermark {
  position: fixed;
  inset: -50vh -50vw;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-rows: 110px;
  align-items: center;
  justify-items: center;
  transform: rotate(-24deg);
  color: #6b5348;
  opacity: 0.14;
  font-size: 22pt;
  font-weight: 700;
  pointer-events: none;
  user-select: none;
}
html[data-hide-watermark] .uat-watermark { display: none !important; }
.eye-page { position: relative; z-index: 2; max-width: 920px; margin: 0 auto; padding: 16px 16px 32px; }
.eye-top { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.eye-back {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #fff7ea;
  color: #5c3a12;
  border: 3px solid #e2b43a;
  font-weight: 800;
  text-decoration: none;
}
h1 { margin: 8px 0; font-size: 1.6rem; }
.eye-lead { margin: 0 0 12px; line-height: 1.45; }
.eye-presets, .eye-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
button {
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 3px solid #e2b43a;
  background: #fff7ea;
  color: #5c3a12;
}
.eye-preset.is-wrong { border-color: #e23b3b; }
.eye-preset.is-current { background: #ffe08a; }
.eye-layout { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.eye-stage {
  position: relative;
  box-sizing: border-box;
  width: 360px;
  height: 420px;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  border: 6px solid transparent;
  overflow: hidden;
}
@keyframes eye-violation {
  0% { border-color: transparent; }
  18% { border-color: #e23b3b; }
  72% { border-color: #e23b3b; }
  100% { border-color: transparent; }
}
.eye-stage.is-flash { animation: eye-violation 0.8s ease 1; }
@media (prefers-reduced-motion: reduce) {
  .eye-stage.is-flash { animation: none; border-color: #e23b3b; }
}
.eye-fit, .eye-stack { position: absolute; inset: 0; }
.eye-part {
  position: absolute;
  box-sizing: border-box;
  border-radius: 18px;
}
.eye-part[data-layer="body-back"] { background: #e7b7a8; border-radius: 40px 40px 28px 28px; }
.eye-part[data-layer="hair-back"] { background: #d98ad0; border-radius: 28px; }
.eye-part[data-layer="tee"] { background: #8fd0bf; }
.eye-tee-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
}
.eye-pocket {
  position: absolute;
  left: 8px;
  top: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f4a4c0;
}
.eye-part[data-piece="shorts"] { background: #f0c94d; }
.eye-part[data-piece="skirt"] { background: #7eb6e8; border-radius: 8px 8px 36px 36px; }
.eye-part[data-piece="pants"] { background: #6aa86a; }
.eye-part[data-layer="outer"] {
  background:
    linear-gradient(#3d6fe0, #3d6fe0) left 32px / 26px calc(100% - 32px) no-repeat,
    linear-gradient(#3d6fe0, #3d6fe0) right 32px / 26px calc(100% - 32px) no-repeat,
    linear-gradient(#3d6fe0, #3d6fe0) center top / 100% 32px no-repeat;
}
.eye-part[data-layer="outer"]::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: -18px;
  height: 18px;
  background: #3d6fe0;
}
.eye-part[data-layer="face"] { background: transparent; }
.eye-face {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 74%;
  background: #f6d3c4;
  border-radius: 50%;
}
.eye-collar {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 22px;
  background: #fff;
  border-radius: 8px;
}
.eye-part[data-layer="hair-front"] { background: #b85cb8; border-radius: 12px 12px 4px 4px; }
.eye-part[data-piece="cap"] { background: #5b9bd5; border-radius: 16px 16px 4px 4px; }
.eye-part[data-piece="flower"] { background: #f0c94d; border-radius: 50%; }
.eye-part[data-piece="crown"] { background: #f4a4c0; border-radius: 6px 6px 10px 10px; }
.eye-part[data-layer="halo"] {
  background: transparent;
  border: 6px solid #ffe56a;
  border-radius: 50%;
  box-sizing: border-box;
}
.eye-lights { list-style: none; margin: 0; padding: 0; min-width: 180px; }
.eye-lights li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  font-weight: 800;
}
.eye-lamp {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  background: #c8c0b8;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.15);
}
.eye-lights .is-on .eye-lamp { background: #3cba6a; }
.eye-lights .is-bad .eye-lamp { background: #e23b3b; }
.eye-lights .is-off { opacity: 0.45; }
.eye-note, .eye-self {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  white-space: pre-wrap;
}
.eye-note.is-pass, .eye-self.is-pass { background: #e5f8ea; color: #145c32; }
.eye-note.is-fail, .eye-self.is-fail { background: #ffd6d6; color: #8d1d1d; }
.eye-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding: 10px;
  background: rgba(255, 248, 240, 0.94);
  border-radius: 16px;
}
.eye-slot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.eye-slot-name { font-weight: 800; margin-right: 2px; }
.eye-chip.is-on { box-shadow: inset 0 0 0 3px #2f6fed; }
.eye-chip.is-clash {
  background: #ffd6d6;
  color: #9b1c1c;
  border-color: #e23b3b;
}
.eye-chip:disabled { opacity: 1; }
.spike {
  margin-top: 20px;
  padding-top: 8px;
}
.spike-stage {
  position: relative;
  width: 360px;
  height: 280px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
}
.spike-torso, .spike-head, .spike-leg { position: absolute; z-index: 0; }
.spike-torso {
  width: 48px;
  height: 58px;
  margin-left: -24px;
  margin-top: -46px;
  background: #e7b7a8;
  border-radius: 18px;
}
.spike-head {
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  background: #f6d3c4;
  border-radius: 50%;
}
.spike-leg {
  height: 8px;
  margin-top: -4px;
  background: #c4897a;
  transform-origin: left center;
  border-radius: 4px;
}
.spike-slot {
  position: absolute;
  min-width: 44px;
  min-height: 28px;
  padding: 4px 6px;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}
.spike-slot[data-slot="jacket"] { background: #5b8def; color: #fff; }
.spike-slot[data-slot="hat"] { background: #5b9bd5; color: #fff; }
.eye-refused { padding: 24px; font-weight: 800; }
.eye-details { margin-top: 12px; }
@media (max-width: 720px) {
  .eye-stage { width: 100%; height: 236px; }
  .eye-fit { transform: scale(0.62); transform-origin: top center; }
  .eye-lights { display: flex; flex-wrap: wrap; min-width: 0; gap: 4px 10px; }
  .eye-lights li { margin: 0; font-size: 0.92rem; }
}
