/* ═══ 妙影照馆 · 高档版主题 ═══ */
* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: #f3e9d2;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, #3a2c18 0%, transparent 60%),
    radial-gradient(ellipse 70% 55% at 50% 115%, #2b1f3a 0%, transparent 55%),
    linear-gradient(160deg, #0b0e16 0%, #12101c 55%, #0a0c12 100%);
}
#bgfx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#sweep {
  position: fixed; top: -30%; left: -60%; width: 40%; height: 160%; z-index: 0;
  pointer-events: none; transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 225, 170, .05), transparent);
  animation: sweep 9s ease-in-out infinite;
}
@keyframes sweep { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }

#wrap { position: relative; z-index: 1; width: 100%; height: 100%; display: flex; flex-direction: column; padding: 2.6vh 4vw; }
header { text-align: center; margin-bottom: 2vh; }
header h1 {
  font-size: clamp(26px, 4vh, 42px); font-weight: 700; letter-spacing: .12em;
  background: linear-gradient(180deg, #fff6dd 15%, #f5d78e 45%, #c9992e 75%, #ffe9b0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px rgba(212, 165, 66, .35));
}
header h1 span { color: #b8860b; }
header p { font-size: clamp(12px, 1.9vh, 18px); color: #c9b98f; margin-top: .6vh; letter-spacing: .18em; }
.ornament { color: #8a6d2f; font-size: clamp(10px, 1.5vh, 14px); letter-spacing: .4em; margin: .5vh 0; opacity: .8; }

main { flex: 1; display: flex; gap: 4vw; justify-content: center; align-items: center; min-height: 0; }

#left { display: flex; flex-direction: column; align-items: center; gap: 1.6vh; }
#stage {
  border-radius: 10px;
  border: 1px solid rgba(214, 178, 94, .5);
  box-shadow: 0 0 0 6px rgba(214, 178, 94, .08), 0 0 34px rgba(198, 156, 60, .2), 0 22px 54px rgba(0, 0, 0, .6);
}
.row { display: flex; gap: 1vw; }

button {
  position: relative; overflow: hidden; cursor: pointer; border-radius: 999px;
  height: 5.6vh; padding: 0 2.2vw; font-size: clamp(14px, 2vh, 20px); letter-spacing: .12em;
  color: #e8d9b0; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(214, 178, 94, .4); transition: all .25s ease;
}
button:hover { border-color: #f0cd7a; color: #fff3d6; box-shadow: 0 0 18px rgba(214, 178, 94, .3); transform: translateY(-2px); }
button:disabled { opacity: .35; cursor: default; transform: none; box-shadow: none; }
button.primary {
  font-weight: 700; border: none; color: #241a05;
  background: linear-gradient(160deg, #f7e0a4 0%, #dcb45e 40%, #b8860b 100%);
  box-shadow: 0 6px 24px rgba(198, 156, 60, .45), inset 0 1px 0 rgba(255, 255, 255, .6);
}
button.primary::before {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -80%; } 90%, 100% { left: 160%; } }

#status {
  font-size: clamp(12px, 1.8vh, 17px); color: #cdbd93; letter-spacing: .08em; text-align: center;
  padding: .5vh 2vw; border-radius: 999px; background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(214, 178, 94, .18);
}

#right h2 {
  font-size: clamp(13px, 2vh, 19px); color: #d6b25e; margin: 1.4vh 0 .8vh; letter-spacing: .35em;
  display: flex; align-items: center; gap: .6em;
}
#right h2::before { content: '◆'; font-size: .6em; color: #8a6d2f; }
.grid { display: flex; gap: .8vw; flex-wrap: wrap; }
.cell {
  height: auto; padding: 1vh 1.4vw; border-radius: 10px; font-size: clamp(13px, 1.9vh, 18px);
  background: linear-gradient(170deg, #1c1826, #0e0c14);
  border: 1px solid rgba(214, 178, 94, .35);
}
.cell.active { border-color: #f0cd7a; box-shadow: 0 0 16px rgba(240, 205, 122, .35); color: #fff3d6; }
.swatch { width: 5vh; height: 5vh; border-radius: 10px; border: 2px solid rgba(255,255,255,.25); cursor: pointer; transition: transform .2s; }
.swatch:hover { transform: scale(1.1); }
.swatch.active { border-color: #f0cd7a; box-shadow: 0 0 14px rgba(240, 205, 122, .5); }

#sheet {
  background: rgba(255, 255, 255, .04); border-radius: 8px;
  border: 1px solid rgba(214, 178, 94, .3); box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}
#cam { position: fixed; left: -9999px; }
