/* ロック画面（config.lock のツアーだけ）。配色・書体はツアーの config.css で --lock-* を上書きする */
.lock { --lock-bg: #0d0d0e; --lock-ink: #f2f0ec; --lock-mute: #8d8a85; --lock-line: #4a4845; --lock-error: #e0685a;
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px 16px 96px;
  background: var(--lock-bg); color: var(--lock-ink); overflow-y: auto; transition: opacity .9s ease, visibility 0s linear .9s; }
.lock.open { opacity: 0; visibility: hidden; }
.lock-panel { width: min(420px, 100%); text-align: center; }
.lock-eyebrow { margin: 0 0 24px; font-size: 11px; letter-spacing: .32em; color: var(--lock-mute); }
.lock h1 { margin: 0; font-size: clamp(28px, 7vw, 44px); font-weight: 300; line-height: 1.2; letter-spacing: .06em; }
.lock-rule { width: 40px; height: 1px; margin: 24px auto; background: var(--lock-ink); opacity: .5; }
.lock-lead { margin: 0 0 32px; font-size: 13px; line-height: 2; color: var(--lock-mute); white-space: pre-line; }
#lock-form { display: flex; align-items: flex-end; gap: 12px; border-bottom: 1px solid var(--lock-line); transition: border-color .3s; }
#lock-form:focus-within { border-color: var(--lock-ink); }
#lock-form.err { border-color: var(--lock-error); animation: lock-shake .4s; }
@keyframes lock-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
/* 16px未満だとiPhoneが入力時に画面を拡大する */
#lock-pw { flex: 1; min-width: 0; padding: 14px 2px; border: 0; outline: 0; background: transparent; color: var(--lock-ink); font: inherit; font-size: 16px; letter-spacing: .2em; }
#lock-pw::placeholder { color: var(--lock-mute); letter-spacing: .12em; }
#lock-go { padding: 14px 2px; font-size: 12px; font-weight: 500; letter-spacing: .3em; }
#lock-go:disabled { opacity: .35; cursor: default; }
.lock-msg { min-height: 20px; margin: 16px 0 0; font-size: 12px; letter-spacing: .06em; color: var(--lock-mute); }
.lock-msg.err { color: var(--lock-error); }
.lock-powered { position: absolute; left: 0; right: 0; bottom: calc(max(20px, env(safe-area-inset-bottom)) + 28px); margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 9px; letter-spacing: .2em; color: var(--lock-mute); }
.lock-powered img { display: block; width: 110px; height: auto; }
.lock-foot { position: absolute; left: 0; right: 0; bottom: max(20px, env(safe-area-inset-bottom)); margin: 0; text-align: center; font-size: 10px; letter-spacing: .3em; color: var(--lock-mute); }
/* 背の低い画面（スマホ横向き）では下部の表記を入力欄に重ねず、流れの中に置く */
@media (max-height: 520px) {
  .lock { align-content: start; padding-bottom: 24px; }
  .lock-powered, .lock-foot { position: static; margin-top: 20px; }
}

/* タグのコンテンツ表示（config.tagPopups のツアーだけ） */
.tagpop-box { position: relative; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 44px 24px 24px; background: #151516; }
.tagpop-img { display: block; max-width: 100%; max-height: 38vh; margin: 0 auto 16px; }
.tagpop h3 { margin: 0 0 12px; font-size: 16px; font-weight: 500; line-height: 1.6; }
.tagpop-text { margin: 0; font-size: 14px; font-weight: 300; line-height: 1.9; white-space: pre-line; }
.tagpop video { display: block; width: 100%; max-height: 60vh; margin-bottom: 12px; background: #000; }
.tagpop-audio { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.tagpop-play { flex: none; width: 48px; height: 48px; border: 1px solid #fff; border-radius: 50%; position: relative; }
.tagpop-play::before { content: ""; position: absolute; left: 19px; top: 15px; border: solid transparent; border-width: 8px 0 8px 13px; border-left-color: #fff; }
.tagpop.playing .tagpop-play::before { left: 16px; top: 15px; width: 4px; height: 16px; border: solid #fff; border-width: 0 4px; }
.tagpop-bar { flex: 1; height: 20px; cursor: pointer; background: linear-gradient(#555, #555) center / 100% 2px no-repeat; position: relative; }
.tagpop-bar span { position: absolute; left: 0; top: 9px; height: 2px; background: #fff; }
.tagpop-audio time { flex: none; min-width: 36px; font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.tagpop-missing { display: none; margin: 16px 0 0; font-size: 12px; color: #aaa; }
.tagpop.missing .tagpop-missing { display: block; }

/* タグの位置決め（?place=1・制作用） */
.tagplace { position: fixed; z-index: 90; left: 12px; top: 12px; width: 300px; padding: 12px; background: rgba(0,0,0,.8); color: #fff; font-size: 13px; line-height: 1.6; }
.tagplace p { margin: 4px 0; }
.tagplace small { display: block; color: #bbb; }
.tagplace button { margin-top: 8px; padding: 6px 10px; border: 1px solid #fff; font-size: 12px; }
