/* 投稿・共有ページ共通の合言葉入力モーダル */
.access-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(24, 32, 38, 0.68);
    backdrop-filter: blur(4px);
}

.access-gate-overlay[hidden],
#submission-content[hidden],
#share-content[hidden] {
    display: none !important;
}

.access-gate-dialog {
    width: min(100%, 460px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 30px;
    background: var(--panel);
    box-shadow: 0 24px 70px rgba(15, 35, 44, 0.28);
    text-align: center;
}

.access-gate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--subtle);
    color: var(--accent);
    font-size: 24px;
}

.access-gate-dialog h2 {
    margin: 16px 0 8px;
    font-size: 22px;
    line-height: 1.4;
}

.access-gate-description {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
}

.access-gate-form {
    display: grid;
    gap: 12px;
    text-align: left;
}

.access-gate-form input {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 14px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 16px;
}

.access-gate-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}

.access-gate-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.access-gate-submit:hover {
    background: var(--accent-strong);
}

.access-gate-submit:disabled {
    background: var(--muted);
    cursor: wait;
}

.access-gate-error {
    min-height: 1.5em;
    margin: 0;
    color: var(--danger);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 480px) {
    .access-gate-overlay {
        padding: 20px;
    }

    .access-gate-dialog {
        padding: 30px;
    }
}
