* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif; user-select: none; }
body { background: #000; color: #fff; height: 100dvh; overflow: hidden; display: flex; justify-content: center; align-items: center; }

.media-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.gate {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; padding: 20px 20px calc(28px + env(safe-area-inset-bottom));
  max-width: 430px; left: 50%; transform: translateX(-50%); width: 100%;
  background: #0a0a0d;
}
.gate-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.gate-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 18%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.15) 100%);
}
.gate-card {
  position: relative; z-index: 2; width: 100%; max-width: 360px; text-align: center; padding: 22px 18px; border-radius: 26px;
  background: rgba(28, 28, 30, 0.72); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}
.gate-badge { display: inline-block; background: rgba(255, 45, 85, 0.18); color: #FF375F; border: 1px solid rgba(255,55,95,0.4); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 12px; margin-bottom: 12px; letter-spacing: 0.5px; }
.gate-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.gate-sub { font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.45; margin-bottom: 18px; }
.gate-btns { display: flex; flex-direction: column; gap: 10px; }
.gate-btn { width: 100%; padding: 14px 16px; border-radius: 16px; border: none; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform 0.12s ease; }
.gate-btn:active { transform: scale(0.95); }
.gate-btn.primary { background: linear-gradient(135deg, #FF2D55, #D91B42); box-shadow: 0 6px 20px rgba(255, 45, 85, 0.35); }
.gate-btn.under { background: transparent; color: rgba(255,255,255,0.55); font-weight: 400; font-size: 13px; padding: 6px; }

/* 首图：男女双人像并排 */
.gate-gender {
  justify-content: flex-start; padding-top: calc(18px + env(safe-area-inset-top));
  background: radial-gradient(circle at 50% 20%, #2a1220 0%, #08080b 65%);
}
.gender-head { position: relative; z-index: 2; text-align: center; padding: 8px 12px 14px; width: 100%; }
.gender-head .gate-sub { margin-bottom: 0; }
/* 素材为 9:16(720×1280)：框跟竖版比例，避免 flex 拉满高度把脸裁没 */
.gender-pair {
  position: relative; z-index: 2; flex: 1; width: 100%; display: flex; gap: 12px; min-height: 0;
  padding: 0 10px 14px; align-items: center; justify-content: center;
}
.gender-card {
  flex: 1 1 0; min-width: 0; max-width: 200px; aspect-ratio: 9 / 16;
  max-height: min(64dvh, 560px); height: auto; align-self: center;
  position: relative; border: none; padding: 0; border-radius: 20px; overflow: hidden;
  cursor: pointer; background: #1a1a1e; box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  border: 1.5px solid rgba(255,255,255,0.14); transition: transform 0.15s ease, border-color 0.15s, box-shadow 0.15s;
}
.gender-card:active { transform: scale(0.97); }
.gender-card:focus-visible { outline: 2px solid #FF375F; outline-offset: 2px; }
.gender-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%; display: block;
}
.gender-label {
  position: absolute; left: 8px; right: 8px; bottom: 10px; padding: 10px 8px; border-radius: 14px;
  background: linear-gradient(135deg, #FF2D55, #D91B42); color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 45, 85, 0.4); z-index: 1;
}

.dwell { display: none; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.14); padding: 4px 10px; border-radius: 20px; backdrop-filter: blur(10px); font-variant-numeric: tabular-nums; position: relative; z-index: 200; }
.dwell.on { display: inline-block; }
.dwell.ok { border-color: #30D158; color: #30D158; font-weight: 600; }
